Re: [Rails-core] How to disable ORM in Rails 3

2010-07-26 Thread Mislav Marohnić
On Sat, Jul 24, 2010 at 21:57, Yehuda Katz wrote: > rails new myapp --skip-active-record Right, so how about changing an existing app to not use ActiveRecord? The app generator doesn't allow generating over existing files (a decision I don't understand). And even if it did, we would have to ove

[Rails-core] Exception Pages when behind a proxy

2010-07-26 Thread adamc
I am not sure if this desired feature or not but when we are behind a local proxy ie. Nginx/Varnish then the new ShowException middleware doesn't seem to properly detect the remote IP address and it appears as if every browser gets a local error page with a stack trace, etc. I've opened up a ticke

Re: [Rails-core] Exception Pages when behind a proxy

2010-07-26 Thread Ernie Miller
I took a quick glance at http://github.com/rails/rails/blob/master/actionpack/lib/action_dispatch/middleware/remote_ip.rb, and if I understand your description of the problem on the ticket, it may very well be the same old behavior that's been in Rails for ages. I wrote about it in detail a cou

Re: [Rails-core] How to disable ORM in Rails 3

2010-07-26 Thread Santiago Pastorino
Rodrigo, you should run ruby bin/rails --help --dev or ruby -rubygems bin/rails --help But you're right the error message was not the best it was fixed here http://github.com/rails/rails/commit/514624e53c7b3008e3c492ef01f4d85188cdbbd7 Cheers, Santiago. On Sun, Jul 25, 2010 at 9:49 PM, Rodrigo

Re: [Rails-core] How to disable ORM in Rails 3

2010-07-26 Thread Rodrigo Rosenfeld Rosas
Thank you, Santiago. I'll test it when I get home. Best regards, Rodrigo. Em 26-07-2010 15:28, Santiago Pastorino escreveu: Rodrigo, you should run ruby bin/rails --help --dev or ruby -rubygems bin/rails --help But you're right the error message was not the best it was fixed here http://gi

[Rails-core] Re: Exception Pages when behind a proxy

2010-07-26 Thread adamc
Thanks Ernie. I should have provided some links and specific code segments in detail... The middleware in question is this one: http://github.com/rails/rails/blob/master/actionpack/lib/action_dispatch/middleware/show_exceptions.rb If you take a look at the call method you can see that it wraps a

Re: [Rails-core] How to disable ORM in Rails 3

2010-07-26 Thread Rodrigo Rosenfeld Rosas
Santiago, now I could run bin/rails. But there is still something odd: ruby ~/src/git/rails/bin/rails --dev --help Thor is not available. If you ran this command from a git checkout of Rails, please make sure thor is installed, and run this command as `ruby /home/rodrigo/src/git/rails/bin/rail

Re: [Rails-core] How to disable ORM in Rails 3

2010-07-26 Thread Rodrigo Rosenfeld Rosas
Em 26-07-2010 21:18, Rodrigo Rosenfeld Rosas escreveu: ... Anyway, it is not clear to me what the "-O" option changed in the output application files. Ok, I've found the changes in config/application.rb. But I think sqlite3-ruby gem should be commented in Gemfile when -O is passed... Does

Re: [Rails-core] How to disable ORM in Rails 3

2010-07-26 Thread Santiago Pastorino
Yes, it would be nice if --dev works everywhere. On Mon, Jul 26, 2010 at 9:18 PM, Rodrigo Rosenfeld Rosas wrote: >  Santiago, now I could run bin/rails. But there is still something odd: > > ruby ~/src/git/rails/bin/rails --dev --help > > Thor is not available. > If you ran this command from a gi

Re: [Rails-core] How to disable ORM in Rails 3

2010-07-26 Thread Santiago Pastorino
Agree -O should comment sqlite3-ruby patch it or create an issue ;). Thanks. On Mon, Jul 26, 2010 at 9:45 PM, Rodrigo Rosenfeld Rosas wrote: >  Em 26-07-2010 21:18, Rodrigo Rosenfeld Rosas escreveu: >> >> ... >> Anyway, it is not clear to me what the "-O" option changed in the output >> applicati

[Rails-core] 3.0.0rc ActionController::RoutingError No route matches

2010-07-26 Thread Nate W
Have been developing on 3.0.0beta4 and just updated to 3.0.0.rc. When I try to link_to() a User object that previously had worked, I get the following: ActionView::Template::Error (No route matches {:action=>"destroy", :controller=>"games", :id=># Yet I have in my routes.rb file has resources :us

Re: [Rails-core] 3.0.0rc ActionController::RoutingError No route matches

2010-07-26 Thread Ryan Bigg
Please show the full link_to method that you're using. Also, where is games coming from? Please show real routes file too. On 27 July 2010 13:33, Nate W wrote: > Have been developing on 3.0.0beta4 and just updated to 3.0.0.rc. > > When I try to link_to() a User object that previously had worked,

[Rails-core] Re: 3.0.0rc ActionController::RoutingError No route matches

2010-07-26 Thread Nate W
Sorry, "games" should be "users" pasted the same error on a different object I was checking it on (Game). I've verified its just about any link_to to an object. Here's the exact one: <%= link_to "user.login".html_safe, user %> Using ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.

[Rails-core] Re: 3.0.0rc ActionController::RoutingError No route matches

2010-07-26 Thread Nate W
Another error in my post: > <%= link_to "user.login".html_safe, user %> should be: <%= link_to "#{user.login}".html_safe, user %> its been a long day... On Jul 27, 12:10 am, Nate W wrote: > Sorry, "games" should be "users" pasted the same error on a > different object I was checking it on (

[Rails-core] Re: 3.0.0rc ActionController::RoutingError No route matches

2010-07-26 Thread Nate W
For better formatted info: http://stackoverflow.com/questions/3340693/rails-3-0-0-rc-actioncontrollerroutingerror-no-route-matches I looked into changes in the relevant action_dispatch lines, could it be this? http://github.com/rails/rails/commit/a1e795f554e07476f1084a0c76cb8b033d1d0b0c On Jul 27