Fixed it. I was using a form_for like this:
<% form_for @account do |f| %>
and this was generating the following in html:
<form action="/account.%23%3Caccount:0xb71052a4%3E"
class="edit_account"...
Maybe because it is a resource?
I changed it to:
<% form_for :account, @account, :url => { :action => 'update' }, :html
=> { :method => :put } do |f| %>
Now it works!
On Aug 14, 10:39 am, elioncho <[email protected]> wrote:
> Yep, I tried that and I'm still getting the same error.
>
> On Aug 14, 4:39 am, Rails List <[email protected]>
> wrote:
>
> > specify the controller name in your render and redirect. Is it still
> > giving the same error?
> > --
> > Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---