Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old August 16th, 2007, 03:28 PM
Newbie
 
Join Date: Aug 2007
Posts: 1
Default New to Ruby/Rails

Hello, I am new to this and have run into a problem. I have edited a column in MySql and I can see that it works fine. The problem I have is I need to refresh the view (hope thats the right term) to show the change. I have looked and come up with:

Expand|Select|Wrap|Line Numbers
  1. class test < ActiveRecord::Base
  2. before_destroy :change_field
  3.  
  4.    def change_field      
  5.       self.filed='0'
  6.       update
  7.       test.reload()
  8.  
  9.       #page.call 'location.reload'       
  10.       return false     
  11.     end
  12.  
It doesnt work... so my question is... is there an easy way to force a refresh of the screen?

Thanks
Reply
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles