hyperlink - Creating Link with Ruby on Rails -


Obviously, I'm new to this

Link me to some models via rail Have to use. I have this code. This is probably not the right syntax:

  & lt; Li id = "nav_home" & gt; & Lt;% = link_to 'SOMETHING', {: controller = & gt; 'Inventory',: Action => 'Home'}%> & Lt; / Li & gt;  

This code is the default for creating a text link, but I want to link the link element ideally it will be output:

  
  • Gt; & Lt; A href = "goes away" & gt; & Lt; / A & gt; & Lt; / Li & gt;
  • Thanks!

    the full digit of link_to is that it Helps create link for application resources If you want all the & lt; Li & gt; & Lt; A href = "#" & gt; & Lt; / A & gt; & Lt; / Li & gt; , then only & lt; Li & gt; & Lt; A href = "#" & gt; & Lt; / A & gt; & Lt; / Li & gt; There is no need to include --- link_to.


    Comments

    Popular posts from this blog

    oracle - The fastest way to check if some records in a database table? -

    php - multilevel menu with multilevel array -

    jQuery UI: Datepicker month format -