How to test Rails 3?

1 view
Skip to first unread message

Rodrigo Rosenfeld Rosas

unread,
Dec 31, 2009, 4:50:45 PM12/31/09
to Ruby on Rails: Core <rubyonrails-core@googlegroups.com>, Rodrigo Rosenfeld Rosas
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.

John Trupiano

unread,
Dec 31, 2009, 4:57:03 PM12/31/09
to rubyonra...@googlegroups.com
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


--

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 rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-co...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.



Jeremy Kemper

unread,
Dec 31, 2009, 7:59:25 PM12/31/09
to rubyonra...@googlegroups.com

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

Best,
jeremy

Rodrigo Rosenfeld Rosas

unread,
Jan 1, 2010, 7:21:42 AM1/1/10
to rubyonra...@googlegroups.com
Jeremy Kemper escreveu:
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

unread,
Jan 1, 2010, 8:26:16 AM1/1/10
to rubyonra...@googlegroups.com
Rodrigo Rosenfeld Rosas escreveu:
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.

Kieran P

unread,
Jan 1, 2010, 3:45:37 PM1/1/10
to Ruby on Rails: Core
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
>

Jeremy Kemper

unread,
Jan 1, 2010, 5:23:38 PM1/1/10
to rubyonra...@googlegroups.com
Ah -- the dev options is pending some bundler updates coming this
week. Stay tuned!

jeremy

Reply all
Reply to author
Forward
0 new messages