Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
updated docs
  • Loading branch information
mooktakim committed Dec 16, 2010
1 parent ad32d0c commit e4f8d26
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.rdoc
Expand Up @@ -4,12 +4,12 @@ Deployment scripts for Heroku.

To generate CSS and JS use:
# route.rb
match "generate_js_and_css" => "application#generate_js_and_css"
match "generate_js_and_css" => "application#generate_js_and_css"

# application_controller.rb
def generate_js_and_css
render :inline => "SUCCESS", :layout => true
end
def generate_js_and_css
render :inline => "SUCCESS", :layout => true
end

If you have all your CSS and JS declared in the layout file, this should work.

Expand Down

0 comments on commit e4f8d26

Please sign in to comment.