Hi Pra,

Sorry, I have been (still am) busy. I'll try to give you an example
ASAP but it might take me a little while. Hopefully soon.

Pepe

On Dec 20, 2:23 pm, Pra Ng <rails-mailing-l...@andreas-s.net> wrote:
> Pra Ng wrote:
> > pepe wrote:
> >> I believe you are missing an input field for your updated value. The
> >> submit will pass along the values of the input fields. Something you
> >> just 'write' inside a <div> tag will not be considered 'input' data.
> >> You could try to replace the <div> with something like <
> >> %= :chapter.field_text :container... %>
>
> >> Pepe
>
> > Hi Pepe,
>
> > Thanks for your advice..
> > I still don't get how it supposed to work though.
> > I am still not sure how to get it work by replacing the <div> tag.
> > I tried to replace the <div> tag with
> > <% input type="text", id="chapter_container", name="chapter_container"
> > %>
> > but it keep giving me error "The error occurred while evaluating
> > nil.column_for_attribute".
> > Any idea?
>
> > Thanks
>
> Hi Pepe,
> I have tried to use <input id="chapter_container"
> name="chapter_container">.
> It has no error msg, but the "input" tag wouldnt get replaced as I
> wanted it to be. When I am using the <div> tag, the div tag will get
> replaced with the
> function that I called which is "get_chapter_number".
> After I replace it with "input" tag, it wouldnt get replaced.
> any idea on how to get it done?
>
> Regards,
>
> Prawira
> --
> 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 rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to