Victor S
2010-Jun-27 16:44 UTC
Rails layout generator not doing what the documentation sais it should be doing?
Hello, I''ve just started playing around with the Rails 3.0.0.beta and I came across some seemingly strange behaviour, where I expected: "In previous versions of Rails, the rails generate scaffold command would automatically create a controller specific layout, like app/ views/layouts/posts.html.erb, for the posts controller. However this has been changed in Rails 3.0. A application specific layout is used for all the controllers and can be found in app/views/layouts/ application.html.erb. Open this layout in your editor and modify the body tag:" -- http://guides.rails.info/getting_started.html ...but actually got the old behaviour, where a layout was generated for the specific controller... is this just some weirdness with my installation or has anyone else come across this? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Possibly Parallel Threads
- Can't complete the Getting Started tutorial due to ExecJS::RuntimeError in Home#index
- Creating incorrect plurals when generating scaffold
- adding options to erb scaffold generator to include or skip custom views / templates
- (Beginner) ActionController::UrlGenerationError - No route matches
- How knows my paths in link_to? If I do not defined.