Nader Akhnoukh
Not a member
Nader Akhnoukh's latest activity
Friday, October 29 2010
-
Nader Akhnoukh commented at 5:33 PMyep, i think that might be the best solution. seems like messing with url_for just leads to trouble. thanks for all your help. just out of curiosity, do you kno...
-
Nader Akhnoukh commented at 4:26 PMLet say that for example I'm at my root app domain mydomain.com. And each of my users has their own subdomain. So in the view they each have links like root_url...
-
Nader Akhnoukh commented at 3:47 PMHi Andrew, sorry I wasn't clear.
I want to set the host based on some application logic. So this was my old method:
def url_for(options = nil) if options.kin... -
Nader Akhnoukh commented at 9:30 AMAndrew, the only thing I can't figure out is if I'm setting this in a before_filter I don't have access to the options hash. I am passing in a subdomain field w...
-
Nader Akhnoukh commented at 7:27 AMWow, that was some impressive sleuthing. That's exactly what I was doing. Thanks for the huge help.
Thursday, October 28 2010
-
Nader Akhnoukh commented at 8:36 PMAlso, the reason this is a big issue for me is because my clients use CNAMEs to get to their site. I have a piece of rack middleware that looks up the CNAME and...
-
Nader Akhnoukh commented at 5:39 PMOK, I think I see what's happening. Here's the backtrace from where the routing type is set to url:
--> #0 ActionDispatch::Routing::PolymorphicRoutes.routing_t... -
Nader Akhnoukh commented at 4:30 PMI'm using link_to @user from a view.
The code path goes like this:
-routing/url_for.rb:url_for (options is just the user record) # i think this is the bug, shou... -
Nader Akhnoukh created the ticket at 12:19 AMRails 3.0.0
for example link_to @user will generate the equivalent of user_url. shouldn't the default behavior be user_path?
This is because url_for line 134 is...