On 22 August 2012 17:38, Tim Slattery <[email protected]> wrote:
> Colin Law <[email protected]> wrote:
>
>
>>> Don't understand, which route?
>>
>>You are trying to create a form for a JoltRegistry, that expects to
>>submit to a jolts_registries_path (as in the error message).  The
>>normal way to generate the route would be to use
>>resources :jolts_registries
>
> I've done that. Same message. I've tried several different
> permutations of methods, etc. Always the exact same message. I have no
> clue in the world what in the hell it wants me to do. I have no clue
> where it gets "jolts_registries" from in the first place.

In your first post you had
@jolts_registry = JoltsRegistry.new
so @jolts_registry is of JoltsRegistry and hence the route it is looking for.

Did you restart the server after changing routes.rb?  That is one of
the few times it is necessary to restart it.
If it is still not working post your routes.rb file, the output from
rake routes
and copy and paste the error message and the section of code it relates to.

Did you read and understand the guide on routing?

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