Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class FrontsController < ApplicationController
- def index
- end
- def show
- #@user_text = UserText.new
- end
- def create
- @html_text = BlueCloth::new(params[:user_text][:text]).to_html
- # @text = UserText.new
- @text = params[:user_text][:text]
- render :action => "show"
- end
- end
Add Comment
Please, Sign In to add comment