Feed on
Posts
Comments

@content_for_layout

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 […]

Read Full Post »