Andrew White
Technical Director · Member of 1 project: Ruby on Rails
Andrew White's latest activity
Friday, October 29 2010
-
Andrew White commented at 9:46 AMThis should work:
class ApplicationController < ActionController::Base before_filter :set_default_host protected def set_default_host default_ur... -
- State changed from needs-more-info to invalid
Actually it shouldn't be hitting the url_for in ApplicationController - it doesn't in a test app. In fact the only way I can get it to go to the url_for in Appl...
-
- Importance changed from to Low
I don't think listing all the applied migrations in schema.rb is a good idea - you'll still get a merge conflict on the Schema.define line. The task
db:migrate:...
-
Andrew White commented at 7:34 AMBah - wrong ticket number in commit message. Anyway the fix is here:
http://github.com/rails/rails/commit/ddf73603c1aeb6be3fd8619c7c0054... -
- State changed from new to duplicate
- Importance changed from to Low
It's already been fixed in this commit on master:
http://github.com/rails/rails/commit/cfc8c7ab54173c4f28776a69de2302...
http://...
Thursday, October 28 2010
-
Andrew White commented at 4:55 PMIt should be first going through url_helper.rb:
http://github.com/rails/rails/blob/master/actionpack/lib/action_vie...
Can you provide a backtrace?
-
- State changed from new to needs-more-info
- Assigned user changed from Ryan Bigg to Andrew White
- Importance changed from to Low
Nader, can you confirm in what context you are using url_for? In a view the :only_path option is passed to url_for so the fact that url_for is calling polymorph...
Wednesday, October 27 2010
-
- State changed from new to invalid
- Importance changed from to Low
The generated url helpers from the resources call overwrite the one from the previous route. It's just like redefining a method. If you use url_for it will matc...