How to test Rails 3?

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.

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

`rails newapp --dev` will generate newapp with a Gemfile pointing at
your local Rails git clone.

Best,
jeremy

Jeremy Kemper escreveu:

  

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.

Rodrigo Rosenfeld Rosas escreveu:

Jeremy Kemper escreveu:

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.

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

Ah -- the dev options is pending some bundler updates coming this
week. Stay tuned!

jeremy