[Rails] Re: Routes problem in form
Well I've figured this one out so no worries.
On Jan 9, 1:10 pm, JD <jdg....@gmail.com> wrote:
> Hello all,
>
> I'm relatively new to rails and have been doing ok with it but I have
> run into an issue that I'm sure has a really easy solution that I just
> can't seem to see.
>
> Basically I have an app and have namespaced and admin section to it.
> I'm getting the following error:
>
> No route matches {:action=>"show", :controller=>"admin/carriers"}
>
> The code at fault is this
>
> <%= form_for(@carrier, :url => admin_carrier_path, :html =>
> { :multipart => true }) do |f| %>
>
> Basically I'm trying to create a new carrier but the form won't render
> due to that error. In my routes file I have the following code.
>
> namespace :admin do
> resources :carriers
> end
>
> And rake routes does show a route that should match. I'm using rails
> 3.0.3 if that is any help.
>
> Any help would be greatly appreciated.
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home