Franz Strebel wrote:
> On Wed, Dec 17, 2008 at 9:37 AM, Zhao Yi
> <[email protected]> wrote:
>>
>> I use ruby script/generate controller mycontroller to create a
>> controller. There app/views/mycontroller/* include all the view files.
>> But I didn't find there is any layout files associated with these views.
>> How can I generate a layout for these views?
> 
> Create the layout under app/views/layouts and depending on your
> version of rails:
> 
> 1.x - mycontroller.rhtml
> 2.x - mycontroller.html.erb

If I create this layout file manually, how will rails link it to the 
views? Which URL refer to this layout?

thanks.
-- 
Posted via http://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
-~----------~----~----~----~------~----~------~--~---

Reply via email to