I have a User model. If I do:
def my_action @user = User.new end
then
<% form_for(@user) do |f| %>
Since I came here looking for a way to create helpers in routes.rb, here is the way to do it:
get '/users/:id/' =>'users#show', :as => :user