On Thu, Dec 20, 2012 at 12:58 PM, Samuel Smith
<samueljsmith-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> When the link is clicked, I want to increment the value of
> @project.status_id
>
> Not finding any FAQs on how to do this.
FAQ? Seriously?
What does clicking a link do? It triggers the browser to send a
request to the server.
In Rails, a controller determined by your routes configuration is
passed that request, and does whatever you want with it.
It''s probably a bad idea to do this with a GET request, but in any
case I''d suggest working through a good basic Rails tutorial
before anything else.
Good luck,
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.