Forum: Ruby Ruby button action

F5a3d0dd2c1cdcae99dd68ce7863be1b?d=identicon&s=25 Hamza Jemai (jha)
on 2014-02-25 15:57
have a method in a controller file that I want activated only when a
button is pressed. That what i do


<%= button_to 'Export POINT', :controller => 'my_controller', :action =>
'create_file_txt' %>


def create_file_txt


permission :view_button_exp, {:controller => :my_controller, :action =>
:create_file_txt}, :require => :member

It's not working, have i an erreur ??

Bf7b52be4eb5664df994184ddf1fed6e?d=identicon&s=25 Brad Smith (bradleyd)
on 2014-02-25 18:52
(Received via mailing list)
you may get better results in a rails thread or forum ;)
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.