>
> I missed the last part of your question, yeah it must be inside a form
> tag. You can't tell browser to pass a random text box value without it
> being inside a form tag or through javascript.
>
> What you're doing now is just passing `member_code` value to
> `member_code` parameter through query string
> (`/path?member_code=member_code`), completely ignoring the text box.
>
Hello nanaya need some more help. In this web page I've member_code
text_field and that value (membercode) has to be passed to different
controllers which is done by more than one link_to helpers. Hence I can't
provide a single url_option to form_tag. So I googled "form_tag without
action" and found a way to write it.
<%= form_tag "#" do %>
<%= link_to "joint_loan", joint_loan_path(member_code: membercode),
method: :post %>
<%= link_to "payment_detail", ............................ %>
<%= link_to "..................................................... %>
<% end %>
But still I'm not able to get the value of member_code.
Thank you.
--
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/8a91ba21-d080-4a09-b044-ebf0968863cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.