You're trying to call a create inside of a create. That makes no sense. In
the controller you attempt to create the object TourType by calling
TourType.new and then while that is going on your attempt to create it again
from inside the model by calling TourType.new. It's erroring out
(thankfully) because the model has no idea what params[:tour_type] is. If it
did, you would have an infinite loop.


On Fri, Feb 25, 2011 at 11:47 PM, Me <[email protected]> wrote:

> yes
>
> On Friday, February 25, 2011 11:46:27 PM UTC-6, bacrossland wrote:
>
>>
>>
>> On Fri, Feb 25, 2011 at 11:43 PM, Me <[email protected]> wrote:
>>
>>> @tour_type = TourType.new(params[:tour_type])
>>>
>>>
>> That is in your TourType model on line 72?
>>
>  --
> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to