On 30 April 2015 at 01:03, Padmahas Bn <[email protected]> wrote:
> ...
> But the second button is not working but throwing an error message
>
> No route matches {:action=>"deduction", :class=>"btn btn-primary",
> :controller=>"recoveries", :method=>"post"}
>
> Now how can I call custom action "deduction" written inside Somenames
> controller so that it will call instance method "methodsecond"

You indicated in a previous message that you had worked right through
railstutorial.org.  Perhaps you missed the sections where it used
routes.rb to setup routes to control which action is called for each
request.  Have a look at the rails guide on routing to see the various
options for how to do this.  Also look at the other guides, they
contain a lot of useful information.

As a matter of interest, why have you posted this request for help
twice?  One is quite sufficient and it is best to use plain text mode
(as you have done here).

Colin

-- 
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/CAL%3D0gLunV0%2BiZSjCMztYvq2w1O3fd_N9rDCQb4F8%3D%3DhQwpogSg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to