On 11/21/06, Dark Ambient
<sambient-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> And if so, I''m going a bit bonkers here and need to watch it
again, but
> if I remember correctly, scaffold_resource generator was used, but for
> nested resources
> the show and index were removed from the controller ?
> Is this correct as far as what happened in the demonstration and if so is
> it correct as far as rest goes ?
>
> TIA
> Stuart
I haven''t seen the episode, but if you don''t need actions,
don''t
create them. For instance, a standard blog usually doesn''t have a
separate page to list comments or show a specific comment. Typically
you''d go to the post permalink (/posts/1) which has the comments
listed. So, implementing CommentsController#index or show
(/posts/1/comments or /posts/1/comments/1) isn''t necessary. All
you''d
need is #create/#delete in this example.
--
Rick Olson
http://weblog.techno-weenie.net
http://mephistoblog.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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---