link_to “Click Me”, ???
When the link is clicked, I want to increment the value of
@project.status_id
Not finding any FAQs on how to do this.
link_to “Click Me”, ???
When the link is clicked, I want to increment the value of
@project.status_id
Not finding any FAQs on how to do this.
On Thu, Dec 20, 2012 at 12:58 PM, Samuel S. [email protected]
wrote:
When the link is clicked, I want to increment the value of
@project.status_idNot 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.
Hassan S. ------------------------ [email protected]
twitter: @hassan
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs