My bad.. I regenerated the controllers and models and the previous error seemed to be gone but now I'm getting this error instead:
Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id If I understand correctly, this statement "<% form_for([:admin, @design]) do |f| %> " is trying to call the @design model with a nil id, which results in this error. That seems inevitable as I'm trying to create a new design through this form. On Oct 6, 10:04 pm, Bryan L <[email protected]> wrote: > Thanks Sijo for the help. I've made the changes according to your > suggestions. The error message is now different, but I guess there's > some improvement! > > "undefined method `^' for "f":String" > > My routes.db: > map.namespace(:admin) do |admin| > admin.resources :designs > end > > Any ideas?? > > On Oct 6, 4:57 pm, Sijo kg <[email protected]> wrote: > > > Hi Bryan L wrote: > > > This is what I have in my routes.rb: > > > map.with_options(:namespace => "admin") do |admin| > > > admin.resources :designs > > > end > > > You have to modify your routes as > > > map.namespace(:admin) do |admin| > > admin.resources :designs > > end > > > And also generate controller and model like > > script/generate controller Admin::Designs > > script/generate model Design #field parameters here > > > Sijo > > -- > > Posted viahttp://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

