When I use link_to method in my posts_controller then I get 'undefined
method `link_to' for  #<PostsController:0x00000106f20100> error. Here
is the code

class PostsController < ApplicationController

  hobo_model_controller
  hobo_user_controller

  auto_actions :all

  def index
    flash[:notice] = "Login or Signup " + link_to(user_signup_path) +
" to create post." if current_user.guest?
  end

end

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to