Hi, one more question before this year ends... How can I create a Rails application from my local branch? I can create the application, but cannot run script/console, for instance... In the past I had to create some symbolic links, but I''m lost now... Any light? Thanks, Rodrigo. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
In the past you''ve been able to run ''rake dev'' from within railties. Not sure if that''s still alive on 3.0. -John On Thu, Dec 31, 2009 at 4:50 PM, Rodrigo Rosenfeld Rosas <rr.rosas@gmail.com> wrote:> Hi, one more question before this year ends... > > How can I create a Rails application from my local branch? > > I can create the application, but cannot run script/console, for > instance... > > In the past I had to create some symbolic links, but I''m lost now... > > Any light? > > Thanks, > > Rodrigo. > > -- > > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To post to this group, send email to rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-core+unsubscribe@googlegroups.com<rubyonrails-core%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en. > > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
On Thu, Dec 31, 2009 at 1:50 PM, Rodrigo Rosenfeld Rosas <rr.rosas@gmail.com> wrote:> Hi, one more question before this year ends... > > How can I create a Rails application from my local branch? > > I can create the application, but cannot run script/console, for instance... > > In the past I had to create some symbolic links, but I''m lost now... > > Any light?`rails newapp --dev` will generate newapp with a Gemfile pointing at your local Rails git clone. Best, jeremy -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Jeremy Kemper escreveu:> On Thu, Dec 31, 2009 at 1:50 PM, Rodrigo Rosenfeld Rosas > <rr.rosas@gmail.com> wrote: > >> Hi, one more question before this year ends... >> >> How can I create a Rails application from my local branch? >> >> I can create the application, but cannot run script/console, for instance... >> >> In the past I had to create some symbolic links, but I''m lost now... >> >> Any light? >> > > `rails newapp --dev` will generate newapp with a Gemfile pointing at > your local Rails git clone. > > Best, > jeremy >Thank you Jeremy, but it still not works. This option is indeed documented and Gemfile is actually pointing at my local Rails branch. script/console yields this error: /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'': no such file to load -- rails (LoadError) I tried to ''gem bundle'' but I needed to ''gem install treetop'' first. Even after ''gem bundle'' succeeded, the error persists... Any idea? Thank you, Rodrigo. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Rodrigo Rosenfeld Rosas escreveu:> Jeremy Kemper escreveu: >> On Thu, Dec 31, 2009 at 1:50 PM, Rodrigo Rosenfeld Rosas >> <rr.rosas@gmail.com> wrote: >> >>> Hi, one more question before this year ends... >>> >>> How can I create a Rails application from my local branch? >>> >>> I can create the application, but cannot run script/console, for >>> instance... >>> >>> In the past I had to create some symbolic links, but I''m lost now... >>> >>> Any light? >>> >> >> `rails newapp --dev` will generate newapp with a Gemfile pointing at >> your local Rails git clone. >> >> Best, >> jeremy >> > Thank you Jeremy, but it still not works. > > This option is indeed documented and Gemfile is actually pointing at > my local Rails branch. > > script/console yields this error: > /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in > `gem_original_require'': no such file to load -- rails (LoadError) > > I tried to ''gem bundle'' but I needed to ''gem install treetop'' first. > > Even after ''gem bundle'' succeeded, the error persists... Any idea? > > > Thank you, > > Rodrigo. >Valim''s today post solved for me: http://weblog.rubyonrails.org/2010/1/1/getting-a-new-app-running-on-edge?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+RidingRails+(Riding+Rails) I have no idea why "--dev" option didn''t work... Thank you once more José! Rodrigo. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Jeremy, While there is no issue with the --edge option, it would appear that the --dev option doesn''t work anymore. I thought perhaps it might be that a newer version of the bundler removed this behaviour, or stopped working. http://github.com/wycats/bundler/issues#issue/145 It looks like another way to get this working is detailed at http://yehudakatz.com/2009/12/31/spinning-up-a-new-rails-app/ (note the directory line) So it might be good if --dev would do the following instead of use :path directory ''/path/to/rails'', :glob => ''{*/,}*.gemspec'' gem "rails", "3.0.pre" Also, while in development, it might be a good idea to add the following, needed for every install: gem ''rack'', :git => ''git://github.com/rails/rack.git'' gem ''arel'', :git => ''git://github.com/rails/arel.git'' Regards Kieran On Jan 1, 1:59 pm, Jeremy Kemper <jer...@bitsweat.net> wrote:> On Thu, Dec 31, 2009 at 1:50 PM, Rodrigo Rosenfeld Rosas > > <rr.ro...@gmail.com> wrote: > > Hi, one more question before this year ends... > > > How can I create a Rails application from my local branch? > > > I can create the application, but cannot run script/console, for instance... > > > In the past I had to create some symbolic links, but I''m lost now... > > > Any light? > > `rails newapp --dev` will generate newapp with a Gemfile pointing at > your local Rails git clone. > > Best, > jeremy-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Ah -- the dev options is pending some bundler updates coming this week. Stay tuned! jeremy On Fri, Jan 1, 2010 at 12:45 PM, Kieran P <kieran776@gmail.com> wrote:> Jeremy, > > While there is no issue with the --edge option, it would appear that > the --dev option doesn''t work anymore. > > I thought perhaps it might be that a newer version of the bundler > removed this behaviour, or stopped working. > > http://github.com/wycats/bundler/issues#issue/145 > > It looks like another way to get this working is detailed at > > http://yehudakatz.com/2009/12/31/spinning-up-a-new-rails-app/ (note > the directory line) > > So it might be good if --dev would do the following instead of > use :path > > directory ''/path/to/rails'', :glob => ''{*/,}*.gemspec'' > gem "rails", "3.0.pre" > > Also, while in development, it might be a good idea to add the > following, needed for every install: > > gem ''rack'', :git => ''git://github.com/rails/rack.git'' > gem ''arel'', :git => ''git://github.com/rails/arel.git'' > > Regards > Kieran > > On Jan 1, 1:59 pm, Jeremy Kemper <jer...@bitsweat.net> wrote: >> On Thu, Dec 31, 2009 at 1:50 PM, Rodrigo Rosenfeld Rosas >> >> <rr.ro...@gmail.com> wrote: >> > Hi, one more question before this year ends... >> >> > How can I create a Rails application from my local branch? >> >> > I can create the application, but cannot run script/console, for instance... >> >> > In the past I had to create some symbolic links, but I''m lost now... >> >> > Any light? >> >> `rails newapp --dev` will generate newapp with a Gemfile pointing at >> your local Rails git clone. >> >> Best, >> jeremy > > -- > > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. > To post to this group, send email to rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en. > > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.