Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Jan's Profile

GitHub User: mediatainment

Site: www.mediatainment-productions.com

Comments by Jan

Avatar

Can someone explain how to get this working with mongoid?

many many thanks

Avatar

simple_form does not allow all bootstrap classes.

Avatar

Hi there,

can someone offer this tutorial as a "non-square-thumbnail" example?

I ran into render issues when I try to change the parameters to a "rectangle" in the js.coffee file

Avatar

render :crop brings me up to a BLANK PAGE,
“406 not acceptable” error

I have to wrap this in a format.html{}

ruby
        if params[:location][:main_image].present?
          format.html {render :crop}
        else
          format.html { redirect_to @location, notice: 'Location was successfully created.' }
          format.json { render json: @location, status: :created, location: @location }
        end

Not sure why... but it works