[Rails] Re: Problem submiting value, form_for, link-to-remote, javascrip

2010-06-16 Thread Neil Bye
Neil Bye wrote: > This is my form. It creates a comment in the database but won't pass the > 'body' value. I think the problem is passing the variable to javascript. > Can anyone help? > > <% form_for :comment, :url=>story_comments_path(@story), :name => > 'form' do |form| %> > >Commen

Re: [Rails] Re: Problem submiting value, form_for, link-to-remote, javascrip

2010-06-13 Thread AliReza Taleghani
Dear Fred; so thanks, for ur help. am so new to ROR, and was so interested on AJAX, i used the ActiveScaffod instead of it and all is okey. bytheway, tnx2much @};- On Sun, Jun 13, 2010 at 8:12 PM, Frederick Cheung < frederick.che...@gmail.com> wrote: > > > On Jun 13, 12:50 pm, Neil Bye wrote:

[Rails] Re: Problem submiting value, form_for, link-to-remote, javascrip

2010-06-13 Thread Frederick Cheung
On Jun 13, 12:50 pm, Neil Bye wrote: > This is my form. It creates a comment in the database but won't pass the > 'body' value. I think the problem is passing the variable to javascript. > Can anyone help? > Your serialize_form method looks borked. You could use the remote_form_for method alter