hi Bryan
its not coming.

*kanna(9742665400)*...........


On 30 July 2013 19:14, Matt Jones <[email protected]> wrote:

>
>
> On Monday, 29 July 2013 11:01:32 UTC-4, kanna wrote:
>>
>> 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[compa**ny_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[compa**ny_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-searchur**l"=>"/deals/search" %>
>>             <%end%>
>>
>>
>> in browser
>> <a class="get_page" *value="dsec" name="deals[company_name]"*
>>  data-url="1" data-**searchurl="/deals/search" **
>> href="javascript:void(0)">**Company Name n</a>
>>
>>
> The values appear in the link tag, just as you requested. Perhaps you're
> intending to pass them as parameters to /deals/search somehow?
>
> To help people answer this question, you should include the Javascript
> code that's reading data-url and data-searchurl so that it can be
> determined exactly what that code is looking for...
>
> --Matt Jones
>
> PS: multiple-posting your question is not generally considered a useful
> way to produce answers faster. :)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/70695f1e-5ed4-469d-a2e4-d4af66b5a943%40googlegroups.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAPtiWRBEek1hG3do3s8bzj%3DcN5_2C%2Bx4D5OQ0FWMCzyztv%2BErw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to