:) It doesn't actually say that. I figured it was easier to change the text
to represent an easier concept than the actual app.
I did discover that i need to pass the arguments in this way though. Rather
than specifying :action_id=> id as a parameter, I needed to add it to the
link.
Eg user_actions_path(:action_id=>id), :method=>:post
This of course still didn't enter it in correctly, but I could read
:action_id out in the controller. Looking at the controller code it was
reading the param :action out.
So the way to call this is.
user_actions_path(:action=>{:action_id => id})
So now I can post all the data by working it out from the page. I'm
surprised the information to do this was so hard.
On Sat, Aug 6, 2011 at 3:10 AM, Robert Walker <[email protected]> wrote:
> Beau wrote in post #1015128:
> > <%= button_to "Complete!",user_actions_path,:action_id =>
> > action.id, :method => :post %>
>
> This might seem trivial and persnickety, but please don't use
> punctuation in buttons, toolbar items or menus. The word "Complete" is
> not a sentence and doesn't deserve punctuation. The one exception to
> this rule is the use of the ellipsis to indicate that choosing the
> button or menu item will request further input from the user (e.g. a
> dialog/input box). "Open Recent..." for example.
>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.