Sha256: 34d12760fb33c359a5d8c4690a8201dbf359ca1d29e22241da84a6f2ffd7fd62
Contents?: true
Size: 563 Bytes
Versions: 1
Compression:
Stored size: 563 Bytes
Contents
class SampleController < ApplicationController # # check out app/controllers/application.rb and app/views/layout/application.rb # def a render :text => 'forty-two', :layout => 'application' end # # check out app/views/sample/b.rhtml lib/widgets/b.rb app/views/widgets/b.rhtml # def b @b = widget 'b' render end # # check out lib/widgets/c.rb app/views/widgets/c.rhtml # def c @var = 42 @c = widget 'c' render :layout => 'application', :inline => <<-rhtml var: <%= @var %> <hr> <%= @c %> rhtml end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
widgetz-0.0.1 | sample/rails/app/controllers/sample_controller.rb |