Skip to content

Instantly share code, notes, and snippets.

@th1agoalmeida
Forked from tbbooher/controller.rb
Created February 1, 2012 01:53
Show Gist options
  • Save th1agoalmeida/1714481 to your computer and use it in GitHub Desktop.
Save th1agoalmeida/1714481 to your computer and use it in GitHub Desktop.
def consent
@user = current_user
if @user.update_attributes(params[:user])#this is really dangerous, I could force my email to change form the form =/
redirect_to :back, notice: "Error updating your user account"
else
flash[:notice] = 'User information updated'
@cart.consent_updated = false
end
end
Started POST "/fitness_camp_registration/consent" for 127.0.0.1 at 2012-01-31 20:45:15 -0500
[paperclip] Duplicate URL for cover_picture with /system/:attachment/:id/:style/:filename. This will clash with attachment defined in Posting class
[paperclip] Duplicate URL for cover_picture with /system/:attachment/:id/:style/:filename. This will clash with attachment defined in Blog class
[paperclip] Duplicate URL for cover_picture with /system/:attachment/:id/:style/:filename. This will clash with attachment defined in Page class
MONGODB fitwit_development['sessions'].find({:_id=>"5ff7acef3b005692ee179e6f3d8035cb"}).limit(-1).sort([[:_id, :asc]])
Processing by FitnessCampRegistrationController#consent as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"VIgUwzuYen4OSQQG/l+OJt+JEMzm1xuySKIGxQa6/0E=", "user"=>{"secondary_phone"=>"", "emergency_contact_name"=>"Jack", "emergency_contact_relationship"=>"282", "primary_phone"=>"28323", "gender"=>"male", "occupation"=>"doctor", "company"=>"IBM", "t_shirt_size"=>"Medium", "date_of_birth(1i)"=>"1928", "date_of_birth(2i)"=>"7", "date_of_birth(3i)"=>"1"}, "commit"=>"Continue to health consent"}
MONGODB fitwit_development['system.namespaces'].find({})
MONGODB fitwit_development['users'].find({:_id=>BSON::ObjectId('4f17718bfdffdc28de00000d')}).limit(-1).sort([[:_id, :asc]])
WARNING: Can't mass-assign protected attributes: secondary_phone, emergency_contact_name, emergency_contact_relationship, primary_phone, gender, occupation, company, t_shirt_size, date_of_birth
MONGODB fitwit_development['$cmd'].find({"count"=>"users", "query"=>{:name=>/^tim$/i, :_id=>{"$ne"=>BSON::ObjectId('4f17718bfdffdc28de00000d')}}, "fields"=>nil}).limit(-1)
MONGODB fitwit_development['$cmd'].find({"count"=>"users", "query"=>{:email=>/^tim@theboohers\.org$/i, :_id=>{"$ne"=>BSON::ObjectId('4f17718bfdffdc28de00000d')}}, "fields"=>nil}).limit(-1)
[paperclip] Saving attachments.
MONGODB fitwit_development['$cmd'].find({"count"=>"users", "query"=>{:name=>/^tim$/i, :_id=>{"$ne"=>BSON::ObjectId('4f17718bfdffdc28de00000d')}}, "fields"=>nil}).limit(-1)
MONGODB fitwit_development['$cmd'].find({"count"=>"users", "query"=>{:email=>/^tim@theboohers\.org$/i, :_id=>{"$ne"=>BSON::ObjectId('4f17718bfdffdc28de00000d')}}, "fields"=>nil}).limit(-1)
[paperclip] Saving attachments.
MONGODB fitwit_development['system.namespaces'].find({})
MONGODB fitwit_development['medical_conditions'].find({:_id=>BSON::ObjectId('4f17771cfdffdc2959000004')}).limit(-1).sort([[:_id, :asc]])
MONGODB fitwit_development['medical_conditions'].find({:_id=>BSON::ObjectId('4f17771cfdffdc295900000a')}).limit(-1).sort([[:_id, :asc]])
MONGODB fitwit_development['medical_conditions'].find({:_id=>BSON::ObjectId('4f17771cfdffdc295900000d')}).limit(-1).sort([[:_id, :asc]])
MONGODB fitwit_development['$cmd'].find({"count"=>"medical_conditions", "query"=>{}, "fields"=>nil}).limit(-1)
MONGODB fitwit_development['medical_conditions'].find({})
MONGODB fitwit_development['medical_conditions'].find({})
Rendered fitness_camp_registration/consent_forms/_medical_condition.haml (23.6ms)
Rendered fitness_camp_registration/consent_forms/_user_verification.haml (2.5ms)
Rendered fitness_camp_registration/consent.html.haml within layouts/application (52.8ms)
Rendered home/_action_buttons.haml (3.2ms)
Rendered search/_form.haml (2.1ms)
Rendered layouts/_header.html.erb (3.3ms)
Rendered layouts/_nav.haml (7.3ms)
Rendered devise/menu/_registration_items.html.erb (0.7ms)
Rendered devise/menu/_login_items.html.erb (1.6ms)
MONGODB fitwit_development['system.namespaces'].find({})
MONGODB fitwit_development['site_menus'].find({:parent_id=>nil}).sort([[:position, :asc]])
MONGODB fitwit_development['site_menus'].find({"parent_id"=>BSON::ObjectId('4f2488e6fdffdc72a000001d')}).sort([[:position, :asc]])
MONGODB fitwit_development['site_menus'].find({"parent_id"=>BSON::ObjectId('4f248918fdffdc72a0000021')}).sort([[:position, :asc]])
Rendered layouts/_footer.html.erb (0.7ms)
Completed 200 OK in 118ms (Views: 89.8ms)
MONGODB fitwit_development['sessions'].update({"_id"=>"5ff7acef3b005692ee179e6f3d8035cb"}, {"$set"=>{"data"=>"BAh7CUkiEF9jc3JmX3Rva2VuBjoGRUZJIjFWSWdVd3p1WWVuNE9TUVFHL2wr\nT0p0K0pFTXptMXh1eVNLSUd4UWE2LzBFPQY7AEZJIhl3YXJkZW4udXNlci51\nc2VyLmtleQY7AFRbCEkiCVVzZXIGOwBGWwZvOhNCU09OOjpPYmplY3RJZAY6\nCkBkYXRhWxFpVGkcaXZpAYtpAf1pAf9pAdxpLWkB3mkAaQBpEkkiIiQyYSQx\nMCRJcFJYcVlUcWhmbWtjYmoyV3guSGxlBjsAVEkiCWNhcnQGOwBGbzoJQ2Fy\ndAo6C0BpdGVtc1sGbzoNQ2FydEl0ZW0NOhJAdGltZV9zbG90X2lkSSIdNGYy\nNjA3NmZmZGZmZGMzMzI1MDAwMDA2BjsAVDoQQGNhbXBfcHJpY2VmBjA6DUBm\ncmllbmRzWwA6GUBwYXltZW50X2FycmFuZ2VtZW50OhB0cmFkaXRpb25hbDoV\nQGNvdXBvbl9kaXNjb3VudGkAOhFAY291cG9uX2NvZGVJIg5ubyBjb3Vwb24G\nOwBGOhhAbnVtYmVyX29mX3Nlc3Npb25zaQA6D0B1bmlxdWVfaWQiLWJkZDdj\nOGY3NTNmYWUwMWVlYmVkYmVmZWNiODM2OTMxNTIyN2QyMjQ6FEBuZXdfbWVt\nYmVyc2hpcEY6FUBjb25zZW50X3VwZGF0ZWRGOhZAbWVtYmVyc2hpcF9wcmlj\nZWkAOhZAbWVtYmVyc2hpcF9zZXR1cGkASSIKZmxhc2gGOwBGbzolQWN0aW9u\nRGlzcGF0Y2g6OkZsYXNoOjpGbGFzaEhhc2gJOgpAdXNlZG86CFNldAY6CkBo\nYXNoewA6DEBjbG9zZWRGOg1AZmxhc2hlc3sGOgtub3RpY2VJIh1Vc2VyIGlu\nZm9ybWF0aW9uIHVwZGF0ZWQGOwBGOglAbm93MA==\n"}})
cache: [GET /assets/application.css] stale, valid, store
[2012-01-31 20:45:18] WARN Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment