Monthly Archives: March 2013

what is rails templates ?

generators can be used inside an application, they can also be used to generate applications too, This kind of generator is referred as a “template”. example gem(“rspec-rails”, :group => “test”) gem(“cucumber-rails”, :group => “test”) if yes?(“Would you like to install … Continue reading

Posted in rails, ROR, ruby on rails, web development | Tagged , , , , , , | Leave a comment

How to create a Gem file

1) bundle gem gemwork1 (My IDE has option for “Gem Application” and given the name “gemwork1” as the application name) 2) in ‘lib/gemwork1.rb’ add the functionality code example add the following code to already existing module “Gemwork1”. here we adding … Continue reading

Posted in rails, ROR, ruby on rails, web development | Tagged , , , , , | Leave a comment

Raphaël ( JavaScript library ) in rails

1) Download raphael.js ( downloaded file not worked with me. so fetched it from source code of sample works) 2) added it to the folder app/assets/javascripts 3) create a javascript file for our Raphaël code example $(document).ready(function(){ var paper = … Continue reading

Posted in javascript, rails, ruby on rails, web development | Tagged , , , | 6 Comments

spree with Heroku and Amazon S3

A) spree installation  1) add in gem file and bundle install gem ‘spree’ gem ‘spree_auth_devise’ gem ‘spree_gateway’, :git => ‘git://github.com/spree/spree_gateway.git’, :branch => “1-3-stable” 2) rails g spree:install 3) bundle exec rake spree_auth:install:migrations 4) bundle exec rake db:migrate 5)change the following line … Continue reading

Posted in rails, ROR, ruby on rails, web development | Tagged , , , , , , , , , | 1 Comment