Author Archives: sandipransing

About sandipransing

Web Developer #ruby #rails #JS

Rails 3: Dashing to the Finish

>Check out this SlideShare Presentation: Rails 3: Dashing to the Finishhttp://static.slidesharecdn.com/swf/ssplayer2.swf?doc=dashingtothefinish-100601025536-phpapp01&stripped_title=rails-3-dashing-to-the-finish&userName=wycats View more presentations from Yehuda Katz. Advertisements

Posted in Ruby on Rails | Tagged | Leave a comment

Active Record Inheritance in Rails (ARI)

>Active Record Inheritance (ARI) http://d1.scribdassets.com/ScribdViewer.swf?document_id=44922200&access_key=key-2ix0qbm381eltbaykpu7&page=1&viewMode=list

Posted in Ruby on Rails | Tagged , | Leave a comment

Accessing Helper modules in rails

>Methods defined in Helper modules can directly accessed in rails views because this is what they are pretended for but we often come across with situations where we wanted to use some helper methods in controllers, views, models and mailers … Continue reading

Posted in Ruby on Rails | Leave a comment

authlogic custom conditions for authentication

>To Add custom conditions to authlogic finders first of all we need to override authlogic find_by_login method. class UserSession < Authlogic::Session::Base  after_validation :check_if_verified  find_by_login_method :find_by_login_and_deleted_methodend Then we need to define overridden method inside User model class User < ActiveRecord::Base  acts_as_authentic  … Continue reading

Posted in Ruby on Rails | Tagged | 2 Comments

Getting started with heroku

>Heroku basics

Posted in Ruby on Rails | Tagged | Leave a comment

Overriding to_s method for BigDecimal instance

requirement was to display decimal numbers which are having scale values present to be displayed in decimal format otherwise display them as integer. Output expected 12.23 => 12.23 12.00 => 12 While rendering any object on html page by default … Continue reading

Posted in Ruby | Leave a comment

Twinkle + FF Setup (Click To Call) using telify

On linux machine following settings needs to be done in order to get in browser calling enabledfor phone numbers.Installation setup1. Install twinkle setup (Create user profile) and get it working for outgoing and incoming calls2. Install telify add-on (can be … Continue reading

Posted in Ruby on Rails | Tagged , | 1 Comment