Hi, I''m new to this list so sorry if i''m posting in the wrong place. I''ve just been looking through documentations for generators, as I''ve been trying to make a rails template for the various projects I''m doing now. It turns out that there really isn''t any - especially for rails 3. I dug through the source and ended up finding out that a lot of the possible generator commands are part of thor, not rails. Did I just miss the documentation, or is this something that people (like me, maybe) can get involved with? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
if you enter script/generate –help you get a list of possible generators. for example, script/generate model –help gives you help on the model generator On May 27, 10:16 am, James Nelson <zayd...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > I''m new to this list so sorry if i''m posting in the wrong place. > > I''ve just been looking through documentations for generators, as I''ve > been trying to make a rails template for the various projects I''m > doing now. It turns out that there really isn''t any - especially for > rails 3. I dug through the source and ended up finding out that a lot > of the possible generator commands are part of thor, not rails. > > Did I just miss the documentation, or is this something that people > (like me, maybe) can get involved with?-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.
Sorry, to clarify this I mean in *writing* my own generators - using the Thor built in actions, the Rails ones, etc. Rails templates are what I''m actually trying to build. James On Thu, May 27, 2010 at 6:47 PM, Alex P <oleksandr.petrov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> if you enter script/generate –help you get a list of possible > generators. > > for example, script/generate model –help gives you help on the model > generator > > > On May 27, 10:16 am, James Nelson <zayd...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hi, > > > > I''m new to this list so sorry if i''m posting in the wrong place. > > > > I''ve just been looking through documentations for generators, as I''ve > > been trying to make a rails template for the various projects I''m > > doing now. It turns out that there really isn''t any - especially for > > rails 3. I dug through the source and ended up finding out that a lot > > of the possible generator commands are part of thor, not rails. > > > > Did I just miss the documentation, or is this something that people > > (like me, maybe) can get involved with? > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.
Here''s a great railscast upon the subject: http://railscasts.com/episodes/58-how-to-make-a-generator I would just download the Rails Code, and do the same thing they do. On May 27, 2:26 pm, James <ja...-RlALzS7zFp8pAS55Wn97og@public.gmane.org> wrote:> Sorry, to clarify this I mean in *writing* my own generators - using the > Thor built in actions, the Rails ones, etc. Rails templates are what I''m > actually trying to build. > > JamesOn Thu, May 27, 2010 at 6:47 PM, Alex P <oleksandr.pet...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > if you enter script/generate –help you get a list of possible > > generators. > > > for example, script/generate model –help gives you help on the model > > generator > > > On May 27, 10:16 am, James Nelson <zayd...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hi, > > > > I''m new to this list so sorry if i''m posting in the wrong place. > > > > I''ve just been looking through documentations for generators, as I''ve > > > been trying to make a rails template for the various projects I''m > > > doing now. It turns out that there really isn''t any - especially for > > > rails 3. I dug through the source and ended up finding out that a lot > > > of the possible generator commands are part of thor, not rails. > > > > Did I just miss the documentation, or is this something that people > > > (like me, maybe) can get involved with? > > > -- > > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to > > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > > . > > 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.