search for: fieldname2

Displaying 2 results from an estimated 2 matches for "fieldname2".

Did you mean: fieldname
2006 Mar 10
1
Validate fields and display errors from two models?
...g at for a little while but I can''t seem to get the error messages to appear correctly. My form looks something like this for "ModelA": [errors_for "modelA"] [form for "modelA"] [text "modelA" "fieldname1"] [text "modelB" "fieldname2"] [submit] [/form] The reason for this is I can create many modelB''s for each modelA but when I create modelA I want it to create the first modelB with it. So... In my Model: class ModelA validates_presence_of :fieldname1 has_many :modelBs validates_associated :modelB end class...
2006 Aug 24
1
link_to_remote parameters - help
I''m trying to show a preview of the comments, and I''m saving the comments through AJAX. So, I thought that I should be able to mimic the "comments" action for the "comments_preview" action very easily. So far, this isn''t the case. I have a link_to_remote tag inside of the form tag, and I don''t know how to send the parameters that are