Hi,
I'm new to RoR (came over from PHP). I am working on the backend of my
project now, and I'm basically trying to output a form that lets me
create a new 'design'.
This is what I have in my routes.rb:
map.with_options(:namespace => "admin") do |admin|
admin.resources :designs
end
In my design controller:
def new
@design = Design.new
end
In my view for the form:
<% form_for([:admin, @design]) do |f| %>
<% end %>
When I attempt to view the form page, I get this error:
undefined method `admin_designs_path' for #<ActionView::Base:
0x589b760>
I've been following the official guides to a T, so I'm not really sure
where I've gone wrong. Anyone able to shed some light about this? Many
thanks.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---