/ Published in: Rails
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# this is the Rails 2 way script/console include ActionController::UrlWriter users_path user_path(123) # this is the Rails 3 equivalent rails console include Rails.application.routes.url_helpers users_path user_path(123)