Ruby on Rails
Wednesday, June 22, 2016
On Wednesday, June 22, 2016 at 1:55:46 PM UTC+5:30, nanaya wrote:
Hi,
On Wed, Jun 22, 2016, at 17:20, Padmahas Bn wrote:
> <%= link_to "Joint and Personal loan (Ajax not implemented)",
> jlpl_prints_path(member_code: 'member_code'), :class => "btn btn-danger",
> method: :post %>
>
The path includes a `member_code: 'member_code'` parameter and thus
passed to the controller.
How else can I send member_code to controller ?
What I meant in my first post is, I want to send member_code to controller, But when I check the value of member_code variable in the controller, it doesn't contain any value but the variable itself. As I told before, I've filled my text_field with the member code of 180. When I print member_code in controller I should get 180 right? But I'm getting member_code itself. The output should be
**********Inside controller member_code received is 180****************
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b3fcb4a0-3e4a-4aa8-b6b3-70c1d2a2241e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment