On 1 November 2012 21:02, why-el <[email protected]> wrote:
> Hey fellas,
>
> I have an Organization model with many projects. I have a link to a new
> project from the organization's show view, like so:
> new_organization_project_path (@organization). I was hoping Rails would get
> the id of the organization from the instance I am passing and populate
> project.organization_id, but to no avail. The db rollbacks back and get
> redirected to the new project page. Any ideas? How would you normally do
> this?

Have a look at the the Rails Guide on debugging.  It will show you
techniques that you can use to debug your code.
Hint - start by looking in development.log to see what action is
called and what the parameters are.

Colin

-- 
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 https://groups.google.com/groups/opt_out.


Reply via email to