On 2 July 2012 22:15, cyber c. <li...@ruby-forum.com> wrote:
> Hi,
>
> I have a rails app. upon creating a new record from the browser(although
> it is being created successfully) it doesnt show up in the browsers
> view. Connecting to the DB , i confirmed that the record is created. I
> should do a "Rake db:migrate" inorder to make the record appear on the
> browser's view. Do i have to run rake:db migrate everytime i create a
> new request?

No, of course not.  You only need to run rake db:migrate when you have
a new migration to run.  It is impossible for someone here to know the
answer to your problem when you have given so little data.  Have a
look at the rails guide on debugging to get ideas on how to debug your
code so you can identify where the problem is arising and if you still
cannot work out why the new record does not appear then ask again.

Have you worked right through a tutorial such as railstutorial.org?
If so then when you added a new record to a table there did it appear
in the view?  If it did, but in your app it does not, then try to work
out what the difference is between your code and similar code in the
demo in the tutorial.

Colin

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en-US.

Reply via email to