sudo brew install imagemagickbrew link --overwrite imagemagick
use which convert and which identify to check whether it is well installed.
| window.history.pushState("", "", '/newpage'); |
| devise_for :people, skip: [:sessions, :passwords, :confirmations, :registrations] | |
| as :person do | |
| # session handling | |
| get '/login' => 'devise/sessions#new', as: 'new_person_session' | |
| post '/login' => 'devise/sessions#create', as: 'person_session' | |
| delete '/logout' => 'devise/sessions#destroy', as: 'destroy_person_session' | |
| # joining | |
| get '/join' => 'devise/registrations#new', as: 'new_person_registration' | |
| post '/join' => 'devise/registrations#create', as: 'person_registration' |
sudo brew install imagemagickbrew link --overwrite imagemagickuse which convert and which identify to check whether it is well installed.
To let the application to load all the files in app/models/folder,
In application.rb add following line:
config.autoload_paths += Dir[ Rails.root.join('app', 'models', '**/') ]It should be as simple as possible.
1, ssh to the site
$ ssh philly2, cd to the folder
| <script> | |
| var options = { | |
| zoomType: 'standard', | |
| lens:true, | |
| preloadImages: false, | |
| alwaysOn:false, | |
| zoomWidth: 500, | |
| zoomHeight: 500, | |
| xOffset:30, | |
| yOffset:0, |
| Product.where(:title => Regexp.new( ".*" + params[:term].to_s + ".*", true ) ) |
| # if nil set value after || | |
| tweets = timeline.tweets || [] | |
| def sign_in | |
| current_session || sign_user_in | |
| end | |
| set_or_not_var ||= 2 | |
| options[:country] ||= 'us' |
1, add to gem file
gem "rspec-rails", :group => [:test, :development]
group :test do
gem "factory_girl_rails"
gem "capybara"
gem "guard-rspec"
endGem file
group :development, :test do
gem "rspec-rails"
end
group :test do
gem "factory_girl_rails"
gem "capybara"
gem "guard-rspec"