bar

Css code posted
created at 26 Mar 02:36, updated at 30 Mar 12:36

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  def camera_callback
    if @params['status'] == 'ok'
      #create image record in the DB                                            
      picture = Picture.new({'image_uri'=>@params['image_uri']})
      picture.save
      tempObj = picture.instance_variable_get("@vars")
      WebView.navigate( url_for :action => :edit, :id => tempObj[:object] )
      return ""
    end
    if @params['status'] == 'error'
      puts "Error with camera, perhaps camera is not enabled in build.yml."
      unless @params['message'].nil?
  puts @params['message']
      end
    end
    WebView.navigate( url_for :action => :index )
    ""
  end
648 Bytes in 2 ms with coderay