Ruby on Rails / Rubygems / FullStack / Git / Mac notes.
Some Link_to Usage Tips
some tips for link_to helper
1234567891011121314151617
#in view/xxxx.html.erb<%= link_to "LINK_NAME", xxx_path %><%=link_to"LINK_NAME","LINK_URL",id:"ID_NAME",class:"CLASS_NAME"%># use it like a block# 1link_to"LINK_URL"doimage_tag"IMAGE_FILE"end# 2link_toxxx_pathdoimage_tag"IMAGE_FILE"end