--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/04269e5bd1fe0e2fa4f71eabc7f91e1f%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAGQ0aifoTk5zBNgfzyNe2-qaOiJMhwXziO%2B2LAzHwok%2B34tgVA%40mail.gmail.com.
Hi,
When I try to update a field using the update button I am getting the
error: No route matches [PATCH] "/profile". Its obviously missing the
/:id but I can't figure out why...
I am using a form_for in an edit view.
<%= form_for @profile, :html => { :class => 'form-horizontal '} do |f|
%>
...
<%= f.submit 'Update', :class => 'btn btn-primary' %>
...
<% end %>
@profile contains #<Profile:0x00000104c26398> as it should.
routes contains: resources :profiles and the resulting routes appear OK
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5c4d48bf605038b7c434b6869f19f4a9%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.