I am trying to run the command ''rails generate''. According to RubyonRails.org this should show me what generators are available. When I run the ''rails generate'' command with no options it creates an application named ''generate''. Does anyone know why this is happening? information from: http://guides.rubyonrails.org/command_line.html "1.3 rails generate The rails generate command uses templates to create a whole lot of things. You can always find out what’s available by running rails generate by itself." Thanks, samatoms -- 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-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.
On Sun, Mar 6, 2011 at 10:23 AM, Samuel Sternhagen <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I am trying to run the command ''rails generate''. According to > RubyonRails.org this should show me what generators are available. When > I run the ''rails generate'' command with no options it creates an > application named ''generate''. > > Does anyone know why this is happening?Because the version of Rails you''re running is *not* the version that guide is describing. Command syntax changed significantly from 2.x to 3.x . -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org twitter: @hassan -- 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.
In order to get the output that you''re looking for, you need to type the following on the command line from your RAILS_ROOT directory: ./script/generate -h Part of the output should look something like: Installed Generators Builtin: controller, helper, integration_test, mailer, metal, migration, model, observer, performance_test, plugin, resource, scaffold, session_migration On Sun, Mar 6, 2011 at 7:28 PM, Hassan Schroeder <hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Sun, Mar 6, 2011 at 10:23 AM, Samuel Sternhagen <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> > wrote: > > I am trying to run the command ''rails generate''. According to > > RubyonRails.org this should show me what generators are available. When > > I run the ''rails generate'' command with no options it creates an > > application named ''generate''. > > > > Does anyone know why this is happening? > > Because the version of Rails you''re running is *not* the version that > guide is describing. > > Command syntax changed significantly from 2.x to 3.x . > > -- > Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > twitter: @hassan > > -- > 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. > >-- 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.
On 7 March 2011 09:49, Chris Kottom <chris-kMviOf/NVQxZWXO/OqhO/A@public.gmane.org> wrote:> In order to get the output that you''re looking for, you need to type the > following on the command line from your RAILS_ROOT directory: > ./script/generate -hBut you might be better instead to use Rails 3 rather than the version you are currently using (2.x.x presumably). Colin> Part of the output should look something like: > Installed Generators > Builtin: controller, helper, integration_test, mailer, metal, migration, > model, observer, performance_test, plugin, resource, scaffold, > session_migration > > On Sun, Mar 6, 2011 at 7:28 PM, Hassan Schroeder > <hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> On Sun, Mar 6, 2011 at 10:23 AM, Samuel Sternhagen <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> >> wrote: >> > I am trying to run the command ''rails generate''. According to >> > RubyonRails.org this should show me what generators are available. When >> > I run the ''rails generate'' command with no options it creates an >> > application named ''generate''. >> > >> > Does anyone know why this is happening? >> >> Because the version of Rails you''re running is *not* the version that >> guide is describing. >> >> Command syntax changed significantly from 2.x to 3.x . >> >> -- >> Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org >> twitter: @hassan >> >> -- >> 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. >> > > -- > 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. >-- 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.