link_to not working in script/console

Posted by dorelal on Stack Overflow See other posts from Stack Overflow or by dorelal
Published on 2010-04-08T15:39:31Z Indexed on 2010/04/08 15:43 UTC
Read the original article Hit count: 227

Filed under:
// using Rails 2.3.5

//routes.rb
map.resources :users, 

>> user = User.first
>> helper.link_to user.name, user

I am getting nil error. I thought the above code should work. What am I missing?

© Stack Overflow or respective owner

Related posts about ruby-on-rails