Hi, I am attempting to use script/generate resource. According to this post: http://www.softiesonrails.com/2008/1/29/rails-rest-101-meets-rails-2-0 it should create all of my methods in my controller automatically. For some reason, it creates the controller, but doesn''t create any of the methods. Am i missing something? Is there somewhere that tells me exactly what these scripts do? Thanks! Ryan Lundie B2B Logic.net --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Sorry, that should be script/generate resource (no s) On Apr 16, 4:50 pm, Lundie <rlun...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > I am attempting to use script/generate resource. According to this > post:http://www.softiesonrails.com/2008/1/29/rails-rest-101-meets-rails-2-0 > it should create all of my methods in my controller automatically. For > some reason, it creates the controller, but doesn''t create any of the > methods. > > Am i missing something? Is there somewhere that tells me exactly what > these scripts do? > > Thanks! > > Ryan Lundie > B2B Logic.net--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Problem Solved. Apparently script/generate resource does not create the controller actions for you (not too sure why not). For information take a look at this post: http://www.softiesonrails.com/2008/1/29/rails-rest-101-meets-rails-2-0 He also created a TextMate snippet at: http://softiesonrails.com/2007/12/14/textmate-snippet-for-restful-controller that will create all of the methods for you. On Apr 16, 4:53 pm, Lundie <rlun...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Sorry, that should bescript/generateresource > (no s) > > On Apr 16, 4:50 pm, Lundie <rlun...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hi, > > > I am attempting to usescript/generateresource. According to this > > post:http://www.softiesonrails.com/2008/1/29/rails-rest-101-meets-rails-2-0 > > it should create all of my methods in my controller automatically. For > > some reason, it creates the controller, but doesn''t create any of the > > methods. > > > Am i missing something? Is there somewhere that tells me exactly what > > these scripts do? > > > Thanks! > > > Ryan Lundie > > B2B Logic.net--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---