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

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -