I understand the "rails generate" command generates the files needed for a general type of app. The types of apps include scaffold, model, controller, and others. What are all the options, and what do they all mean? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/qEDbiPygxs8J. For more options, visit https://groups.google.com/groups/opt_out.
Jason Hsu, Android developer wrote in post #1096722:> I understand the "rails generate" command generates the files needed for > a > general type of app. The types of apps include scaffold, model, > controller, and others. > > What are all the options, and what do they all mean?The rails generate ("rails g" for short) is used to generate lots of different things. Not just standard rails models, controllers, views, etc. It is a mechanism that can also be used by gems, rails engines, or even custom generators that you write yourself. I could try to explain the standard rails generators... or you could just read the rails guides. http://guides.rubyonrails.org/getting_started.html#creating-a-resource The above shows the used of rails generate scaffold, but if you scan through the "Getting Started with Rails" guide it shows how to use the generators to generate the individual parts of a Rails app. Judging from your question this guide is where you need to start. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
On Wednesday, 13 February 2013 19:02:40 UTC+1, Jason Hsu, Android developer wrote:> > I understand the "rails generate" command generates the files needed for a > general type of app. The types of apps include scaffold, model, > controller, and others. > > What are all the options, and what do they all mean? >You can also see at the same guide the section on CLI use: http://guides.rubyonrails.org/command_line.html -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/qdYYwf1UjqsJ. For more options, visit https://groups.google.com/groups/opt_out.