Colin Law wrote:
> On 20 May 2010 17:19, Ravi Dtv <li...@ruby-forum.com> wrote:
>> �"users" , :action => "showfriendslist" } %>
>>
>> � <%= hidden_field_tag :group_name �%>
>> </h5>
>> </p>
>> <% end %>
>>
>> I can see my groupname displaying in my page, but when I click on my
>> groupname link, Im not able to pass �groupname to my controller.
> 
> Using a hidden field does not work as you are not in a form.  That is
> how to do it if you were submitting from a form.  Instead just include
> the name in the url - something like
>  <%= link_to_remote g.group_name, :update => "abc", :url => {
> :controller => "users" , :action => "showfriendslist", :group_name =>
> g.group_name } %>
> 
> Look at the html generated by this to check that it is being included 
> correctly.
> 
> Colin

Thank you Colin

I got the  output.
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to