Re: Template is missing

elioncho
Fri, 14 Aug 2009 15:58:18 -0000

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
<elion...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
> Yep, I tried that and I''m still getting the same error.
>
> On Aug 14, 4:39 am, Rails List
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
> wrote:
>
> > specify the controller name in your render and redirect.  Is it still
> > giving the same error?
> > --
> > Posted viahttp://www.ruby-forum.com/.