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 <rails-mailing-l...@andreas-s.net> wrote: > Sazima wrote: > > If this 2nd page you want will contain only 1 message, then it is the > > standard show action + view... Otherwise you can add a named route and > > use whatever name you want for the action and view. But it can be > > trickier to add comments. > > > Cheers, Sazima > > > On Jan 5, 3:05 pm, Dave Smith <rails-mailing-l...@andreas-s.net> > > ok if for now i say i just want all messages, no comments. how would i > go about adding the named route and view? > -- > Posted viahttp://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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---