user1352961
user1352961

Reputation: 247

Rails 3 default host for _path helpers

Is there a way to set default host other than whats being shown in address bar? I am not talking about _url helpers , i want to do this for _path

Thanks

Upvotes: 0

Views: 181

Answers (1)

Mischa
Mischa

Reputation: 43298

No, because _path omits the host completely. E.g. users_path does NOT produce:

http://www.domain.com/users/index

It produces:

/users/index

There is no way to set the host.

Upvotes: 1

Related Questions