Re: Create action from a button?

Hassan Schroeder
Fri, 05 Aug 2011 13:54:00 -0000

On Fri, Aug 5, 2011 at 3:33 AM, Beau
<beautrepp-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

> <%= button_to "Complete!",user_actions_path,:action_id =>
> action.id,  :method => :post %>
>
> This posts the page correctly, however it complains that the action/
> action_id is null

> I have no idea how to fix this too?. Anyone got any clues?

1) Use `View Source` to inspect the rendered HTML to see what
     values are set there.

2) Look at your Rails log to see exactly what''s being submitted.

If that doesn''t show you the problem, post the relevant parts of both
those here.

--
Hassan Schroeder ------------------------
hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
http://about.me/hassanschroeder
twitter: @hassan

--
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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.