Sazima wrote: > 1. Route (config/routes.rb): > > map.with_options(:controller => 'messages') do |m| > m.messages '/messages', :action => 'messages' > end > > 2. Action (app/controllers/messages_controller.rb): > > def messages > # Retrieve messages the same way you did in the index action > end > > 3. View (app/views/messages/messages.html.erb) => do the same as in > index, but showing the whole message... > > Cheers, Sazima > > On Jan 5, 3:20�pm, Dave Smith <[email protected]>
im slightly confused. i was returning the messages in the projects controller by doing @project_messages = @project.messages.collect -- 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

