link to - rails link_to prints itself -
i have in html page
<%= link_to "bla", "www.google.com" %> and when hit localhost:3000 this
<%= link_to "bla", "www.google.com" %> ps: i'm new rails. appreciated.
make sure view file name has html.erb extension.
for example, user model, model in app/models/user.rb, controller in app/controllers/users_controller.rb, , show view in app/views/users/show.html.erb.
i hope helps.
Comments
Post a Comment