Hi, Kanna, please ask such usage questions to
rubyonrails-talk@googlegroups.com.
This list is intended for the development of the Rails framework itself,
while rubyonrails-talk is about its usage.
Cheers,
Rodrigo.
Em 29-07-2013 09:25, Kanna escreveu:> hi i passed name and value in link_to but its not taking?
>
> <%if params[:deals][:company_name] !=nil &&
> params[:deals][:company_name] == "dsec" %>
> <%= link_to "Company Name
> d","javascript:void(0)",:class=>"get_page
>
decending",:name=>"deals[company_name]",:value=>"asc","data-url"=>"1","data-searchurl"=>"/deals/search"
> %>
> <%elsif params[:deals][:company_name] !=nil &&
> params[:deals][:company_name] == "asc"%>
> <%= link_to "Company Name
> a","javascript:void(0)",:class=>"get_page
>
ascending",:name=>"deals[company_name]",:value=>"dsec","data-url"=>"1","data-searchurl"=>"/deals/search"
> %>
> <%else%>
> <%= link_to "Company Name
>
n","javascript:void(0)",:class=>"get_page",:name=>"deals[company_name]",:value=>"dsec","data-url"=>"1","data-searchurl"=>"/deals/search"
> %>
> <%end%>
>
>
> in browser
>
<aclass="get_page"value="dsec"name="deals[company_name]"data-url="1"data-searchurl="/deals/search"href="javascript:void(0)">Company
> Name n</a>
>
>
> how to pass name and value to link_to tag?
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to rubyonrails-core+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-core@googlegroups.com.
Visit this group at http://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/groups/opt_out.