Tag Archives: ruby

Using link_to in rails with :confirm and :method

Every time i’m going to use the link_to method in rails, I always seem to get a lot of errors. The documentation states: link_to(name, options = {}, html_options = nil) link_to(options = {}, html_options = nil) do # name end …

Tagged , , , | Comments Off

Use Rails’ form_tag with care

Today at work I was fiddling with some forms in an admin interface. When I had to make an update form, the data didn’t hit the correct controller action.

If you ever get the message ActionController::MethodNotAllowed, then you’ve created your form wrong!

Tagged , , | Comments Off