@content_for_layout
Posted in Rails, coding on Mar 22nd, 2008 No Comments »
If you create a template file in the app/views/layouts with the same name as a controller, all views used by that controller will use that layout by default.controller/store_controller.rb ::::: consists of method1 & method2def method1
@first_name = “Rajesh”
end
def method2
@last_name = “Kumar”
end
views/store :::::: consists two html method1.rhtml & method2.rhtml
method1.rhtml
<h2>My first name is :: <%= @first_name […]

