Fun On Rails
Enter a key term, phrase, name or location to get a selection of only relevant news from all RSS channels.
Enter a domain's or RSS channel's URL to read their news in a convenient way and get a complete analytics on this RSS feed.
In previous post we saw how to buil RESTful API using Grape. In this post we will see how to add devise auth token to users and how to use it in Grape...
While developing a rich client side web application or mobile app, we need RESTful JSON API which interacts with the front-end javascript framework. Here...
I was happily writing my blog at blogspot almost three plus years. From last 2-3 days, i was evaluating with octopress for its way of writing posts, customizations...
This is an example post which shows various markdown syntax that can be used while writing octopress markdown posts. Bold text Hello Octopress! Blockquote...
There are various blogging sites like blogspot, wordpress, posterous, and many more. Each has their own pros and cons and none of the engine gives us...
Rails 3 has released with various notable features and said that it’s one of the best version rails community has released so far. Highlights of...
We all know that rails models associations gets defined while class definitions are loaded and once defined can’t be changed. But still you can...
We all know that rails models associations gets defined while class definitions are loaded and once defined can't be changed. But still you can make use...
If your application is currently on any version of Rails 2.1.x, The following changes needs to be done for upgrading your application to Rails 2.3.11...
If your application is currently on any version of Rails 2.1.x, Then following changes needs to be done for upgrading your application to Rails 2.3.1...
Basically Enumerable mixin gives collection classes a variety of traverse, search, sort methods. understanding ruby blocks i.e. proc blocks are statements...
Unfortunately Fun On Rails has no news yet.
But you may check out related channels listed below.
[...] ').text(response.error.message); $('.head').css('disabled', false); } } }; Generate & Migrate Payment Model rails g model payment status:string amount:float email:string transaction_number:string [...]
[...] ; {:id => :payForm} do |p| = p.text_field :amount = p.submit 'Pay' Generate & Migrate Payment Model rails g model payment status:string amount:float transaction_number:string rake db: [...]
[...] /payments_controller.rb class PaymentsController :new end end Generate & Migrate Payment Model rails g model payment status:string amount:float transaction_number:string rake db: [...]
[...] mode: test login: 9gdLh6T key: 67fu45xw6VP92LX1 production: Generate & Migrate Payment Model rails g model payment status:string amount:float transaction_number:string rake db: [...]
[...] .pre' Bundle install, generate config & migrate db bundle install rails g active_admin:install rake db:migrate Config # config/initializers/active_admin.rb ActiveAdmin.setup do |config| config. [...]
[...] Model rails g model payment status:string amount:float email:string transaction_number:string rake db:migrate Payment Model # app/models/payment.rb class Payment true, :numericality => { : [...]
[...] ; Migrate Payment Model rails g model payment status:string amount:float transaction_number:string rake db:migrate Payment Model # app/models/payment.rb class Payment true, :numericality => { : [...]
[...] Payment Model rails g model payment status:string amount:float transaction_number:string rake db:migrate SIM gateway methods extracted and added to payment model # app/models/payment.rb [...]
[...] changes inside this ZeroForm cat app/helpers/zero_form.rb class ZeroForm main_class(errT)) end end FIELDS.each do |name| create_tagged_field(name) end end In order to use Nested Forms you need to [...]
[...] } #{super} #{suffix} #{errs}" end @template.content_tag(:div, content, :class => klass) end end HELPERS.each do |name| create_tagged_field(name) end end [...]
[...] define_method :a do puts "hello" end define_method :greeting do |message| puts message end end A.new.a #=> hello A.new.greeting 'Ram ram' #=> Ram ram Can you imagine using dynamic [...]
[...] 'Pay' Payments Controller # app/controllers/payments_controller.rb class PaymentsController :new end end Generate & Migrate Payment Model rails g model payment status:string amount:float [...]
[...] .csv_header "First Name,Last Name,Email,Phone,Mobile, Address, FAX, City".split(',') end def self.build_from_csv(row) # find existing customer from email or create new cust = [...]
[...] (options) paginate :per_page => options[:per_page] || per_page, :page => options[:page] end def self.options_for_select(opts={}) opts[:name] ||= :name opts[:attr] ||= :id opts[:prompt] ||= ' [...]
[...] (error=nil) return CSS[:main_class] unless error [CSS[:main_class], CSS[:field_error]].join(' ') end def required(name) object.class.validators_on(name).map(&:class).include?(ActiveModel:: [...]
[...] $('.head').css('disabled', false); } } }; Generate & Migrate Payment Model rails g model payment status:string amount:float email:string transaction_number:string rake db:migrate Payment [...]
[...] | = p.text_field :amount = p.submit 'Pay' Generate & Migrate Payment Model rails g model payment status:string amount:float transaction_number:string rake db:migrate Payment Model # app/ [...]
[...] : 9gdLh6T key: 67fu45xw6VP92LX1 production: Generate & Migrate Payment Model rails g model payment status:string amount:float transaction_number:string rake db:migrate SIM gateway methods [...]
[...] .rb class PaymentsController :new end end Generate & Migrate Payment Model rails g model payment status:string amount:float transaction_number:string rake db:migrate Payment Model # app/models/ [...]
[...] amount:float email:string transaction_number:string rake db:migrate Payment Model # app/models/payment.rb class Payment true, :numericality => { :greater_than => 0 } def purchase self.status = [...]
[...] :string amount:float transaction_number:string rake db:migrate Payment Model # app/models/payment.rb class Payment true, :numericality => { :greater_than => 0 } def self.conf @@gateway_conf ||= [...]
[...] rake db:migrate SIM gateway methods extracted and added to payment model # app/models/payment.rb class Payment true, :numericality => { :greater_than => 0 } def self.conf @@ [...]
[...] :string amount:float transaction_number:string rake db:migrate Payment Model # app/models/payment.rb class Payment {:in => [true], :message => 'Invalid Credit Card'} validates :amount, : [...]
[...] bootstrap is css toolkit for rapid front-end UI development. To get will-paginate working with bootstrap css we need to override default pagination link renderer. Using Bootstrap-sass for rails 3 # [...]
[...] about how to get started on it click here. Below post will help you out in getting started bootstrap css with rails app. One need to add below files to helpers directory. MainForm can be used as base [...]
[...] how to get started on it click here Below post will help you out in getting started bootstrap css with rails app. One need to add below files to helpers directory. MainForm can be used [...]
[...] and you should be seeing blog running there :–) Deployment There are ways to deploy octopress blog. You can either deploy this blog on heroku or on github using github pages. 1. Heroku: As [...]
[...] way of writing posts, customizations, themes, and plugins. As a result of evaluation, found octopress blog as very quick & easy to write hence decided to shift from blogger to octopress. Below [...]
Paypal standard website payment service allows online payment transactions for websites. Before implementing payments inside rails app needs to have f [...]
Paypal standard website payment service allows online payment transactions for websites. Before implementing payments inside rails app needs to have f [...]
[...] your own routes with parameters but first you should understand how routes behaves. Adding dynamic parameters to routes Here exact parameters are matched to route and presence of each parameter is [...]
[...] include your own parameters inside it. Lets first understand how named routes works: Adding dynamic parameters to routes Here exact parameters are matched to route and presence of each parameter is [...]
[...] ').text(response.error.message); $('.head').css('disabled', false); } } }; Generate & Migrate Payment Model rails g model payment status:string amount:float email:string transaction_number:string [...]
[...] ; {:id => :payForm} do |p| = p.text_field :amount = p.submit 'Pay' Generate & Migrate Payment Model rails g model payment status:string amount:float transaction_number:string rake db: [...]
[...] /payments_controller.rb class PaymentsController :new end end Generate & Migrate Payment Model rails g model payment status:string amount:float transaction_number:string rake db: [...]
[...] mode: test login: 9gdLh6T key: 67fu45xw6VP92LX1 production: Generate & Migrate Payment Model rails g model payment status:string amount:float transaction_number:string rake db: [...]
Related channels
-
Designer Radiators and Heated Towel Rails Companyblue Ltd: Latest News
The latest news from Designer Radiators and Heated Towel Rails Companyblue Ltd.
-
LocomotiveCMS is an open source CMS for Rails
LocomotiveCMS is a free open source CMS in Rails that helps web developers create and manage websites faster than ever.
-
Rail Turkey En
Turkish railway journal and review