For each controller in the line,
 it's defined methods be actions
 for the implicit render of the view
 with the names that match def and view,
 If you write this way, you'll save some typing
 If you practice everyday, you may find a better way.
 If you want to write about a Resource, it helps
 to think about and read into REST.
 It makes most sense when you have a noun.

non-rest Controller
BakeriesController
host:port/bakeries/index
host:port/bakeries/by_city
host:port/bakeries/that_have_nice_scones


REST resource PicklesController
host:port/pickles/index/
host:port/pickles/show/1



On Mon, Jan 18, 2010 at 6:24 AM, Ralph Shnelvar <li...@ruby-forum.com>wrote:

> What's the right RoR way if a controller needs to display one of many
> views in, say, an index method?
> --
> 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-t...@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscr...@googlegroups.com<rubyonrails-talk%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>
>
>
--
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-t...@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.

Reply via email to