> products list should be loaded into the view when
> app starts.
In Rails, apps don't start. Instead, web browsers send requests to
urls, which your app then directs to the proper controller and action.
So I would start by reading the Rails Guide about routing to figure out
how to write simple routes. Then you can route a chosen url to a
certain controller in your app and to a certain action in that
controller. The action can then provide the data that the view will
display, i.e. your Products.
--
Posted via http://www.ruby-forum.com/.
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment