On Nov 16, 9:46 am, "Todd A. Jacobs" <tjacobs-sndr-
b4f...@codegnome.org> wrote:
> The form displays correctly, but gives a routing error when saving. I'm
> not sure what the error is trying to tell me.

The error is telling you that you called property_path(nil) - for
whatever reason @note.property_id isn't set.

Fred
>
> This works fine from the console, insofar as I can call
> "@no...@property.note.new; @note.save" and have it save successfully.
> How can I do it from a view?
>
> Ultimately, the goal is to populate notes linked to the property_id
> without resorting to either hidden fields (insecure) or session
> variables. I thought a form was the way to go, but I'm really stuck.
>
> --
> "Oh, look: rocks!"
>         -- Doctor Who, "Destiny of the Daleks"
--~--~---------~--~----~------------~-------~--~----~
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