This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def register | |
# if request.post? | |
if @user =User.find(:first,:conditions =>{:email =>params[:email],:imei =>params[:imei]}) | |
render :xml => { :status => 0, :data => 'Email alredy taken!' }.to_xml | |
else | |
@user =User.new | |
@user.email = params[:email] if params[:email] | |
@user.password = params[:password] if params[:password] | |
@user.name = params[:email].split('@')[0] | |
@user.imei = params[:imei] if params[:imei] |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Last login: Thu Jul 16 18:42:16 on ttys003 | |
CodeCruxs-MacBook-Pro:y-jobs codecrux$ ls | |
Gemfile README app/ config/ lib/ sfdc.pem vendor/ | |
Gemfile.lock README.md app.json config.ru log/ spec/ | |
Procfile Rakefile bin/ db/ public/ tmp/ | |
CodeCruxs-MacBook-Pro:y-jobs codecrux$ cd | |
CodeCruxs-MacBook-Pro:~ codecrux$ cd workspace/codecrux/naukricw_new/ | |
CodeCruxs-MacBook-Pro:naukricw_new codecrux$ ls | |
Procfile README.md api/ crawler/ requirements.txt | |
CodeCruxs-MacBook-Pro:naukricw_new codecrux$ cd crawler/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OS : Ubuntu 12.04 | |
rails version 3.2.17 | |
ruby 2.1.1 | |
gem 'sidekiq', '~> 2.17.7' | |
gem "kiqstand", "~> 1.1.0" # middleware for Sidekiq for use with Mongoid 3 | |
gem 'sidetiq', '~> 0.5.0' | |
config/sidekiq.rb |
NewerOlder