just a test

C code posted
created at 28 Apr 12:34

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
  def create
    @cookbook = Cookbook.new(params[:cookbook])
    @cookbook.code_html = CodeRay.scan(@cookbook.code.gsub(/^\s+\n/, ''), @cookbook.category).div(:line_numbers => :list, :css => :style)    @cookbook.code_html = CodeRay.scan(@cookbook.code.gsub(/^\s+\n/, ''), @cookbook.category).div(:line_numbers => :list, :css => :style)

    @cookbook.user_id = current_user.id
    if @cookbook.save
      redirect_to :action => "show", :id => @cookbook
    else
      render :action => :new
    end
  end
514 Bytes in 3 ms with coderay