[Rails] Re: trouble with remote_form_for & html_update

2010-07-28 Thread Neil Bye
Neil Bye wrote: > Oldroy wrote: but without making def create render something other than create.html.erb, won't the controller be looking for that instead of your rjs template? I think this is the problem but I don't know the solution. Surely in the absence of create.html.erb it should find crea

[Rails] Re: trouble with remote_form_for & html_update

2010-07-28 Thread Neil Bye
Oldroy wrote: > Hello, > Shouldn't you be doing page.replace_html from inside your controller > and using your rjs page as a paramater passed to page.replace_html?? I don't understand, how would it find the rjs and if the page.replace_htm is in the controller what would it contain? -- Posted vi

[Rails] Re: trouble with remote_form_for & html_update

2010-07-28 Thread Oldroy
Hello, Shouldn't you be doing page.replace_html from inside your controller and using your rjs page as a paramater passed to page.replace_html?? I think the log is telling you that your request found def createbut without making def create render something other than create.html.erb, won't the

[Rails] Re: trouble with remote_form_for & html_update

2010-07-28 Thread Neil Bye
In the log I get ActionView::MissingTemplate (Missing template comments/create.erb in view path app/views): Does that help anyone to explain -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To

[Rails] Re: trouble with remote_form_for & html_update

2010-07-27 Thread Neil Bye
So I strip it down to page.replace_html('aremark', :partial => "content") Still won't work without refreshing the page Frederick Cheung wrote: > On Jul 27, 8:56�pm, Neil Bye wrote: >> This is create.rjs >> >> >> aremark = page.getElementById("aremark") >> page.replace_html('aremark', :partial

[Rails] Re: trouble with remote_form_for & html_update

2010-07-27 Thread Frederick Cheung
On Jul 27, 8:56 pm, Neil Bye wrote: > This is create.rjs > > > aremark = page.getElementById("aremark") > page.replace_html('aremark', :partial => "content") > > This is weird - if it's an rjs file you don't want script tags - an rjs file only contains ruby. Fred > This was working then didn't

[Rails] Re: trouble with remote_form_for & html_update

2010-07-27 Thread Neil Bye
Neil Bye wrote: > I have a form that accepts comments and adds them to a list without > refreshing the page. > It should read I want a form that accepts comments and adds them to a list without refreshing the page. -- Posted via http://www.ruby-forum.com/. -- You received this message because