What do you mean “doesn’t work”? When you press, does the browser try to navagate? Do you see any output from the rails server console? Error messages?
The submit doesn't do what i want, it means that the submit doesn't
update the responsibles. I don't see any error messages. Only the
browser charguing and then redirect to the same view.
So what is the problem? maybe something in the routes? i don't know
but please help me.
I have one question for each submit i need a route in the file
route.rb?
i think that’s my error.
No, if there was an error with routes you would not be redirecting to the same page, and would be getting a disgusting error. The issue is probably in your controller.
> I have one question for each submit i need a route in the file
> route.rb?
> i think that's my error.
No, if there was an error with routes you would not be redirecting to the
same page, and would be getting a disgusting error. The issue is probably in
your controller.
> > > The submit doesn't do what i want, it means that the submit doesn't
> > > update the responsibles. I don't see any error messages. Only the
> > > browser charguing and then redirect to the same view.
These suggestions:
> > Have a look in the log (log/development.log assuming you are in
> > development mode) and see what happens when you click the button.
> > Also you can use ruby-debug to break into your application to see what
> > is happening. See the Rails Guide on Debugging.
> > I presume you have checked the generated html (View, Page Source or
> > similar in your browser) to check the html is what you expect.