The reason it worked is because form_for was trying to resolve a  
RESTful route because it was passed a variable and not a constant. By  
either changing the variable to a constant, or creating the  
map.resources entry to create the RESTful routes, the problem is solved.

I hope that helps!

Jim Schiel


On Apr 7, 2009, at 4:25 PM, Mace Windu wrote:

>
> Colin Law wrote:
>> 2009/4/7 Mace Windu <rails-mailing-l...@andreas-s.net>
>>
>>>
>>> Jim Schiel wrote:
>>>> Just a quick thought -- try :employ, instead of @employ in the
>>>> form_for statement.
>>>
>>> This worked thank you.
>>
>>
>> Can someone explain why please?  I have both form_for(@blah) and
>> form_for
>> :blah and both appear to work ok for me.
>> Colin
>
> good question I don't know. I'm new to rails
> -- 
> 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 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