Skip to content

Commit

Permalink
testing rendering views if no render method in controller
Browse files Browse the repository at this point in the history
  • Loading branch information
nikone committed Feb 23, 2015
1 parent 1dd9b02 commit ecf82fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/controllers/pages_controller.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
class PagesController < Garnet::Controller
attr_reader :data

def about
render :about, name: "Darth", last_name: "Vader"
end

def info
render :info, data: params["data"]
@data = params["data"]
#render :info, data: params["data"]
end
end

0 comments on commit ecf82fa

Please sign in to comment.