Angular JS · Rails4 · Ruby On Rails

Angular JS implementation with Rails 4

Step 1 : Create rails app using rails new employee_detailsStep 2 : Remove turbolinks gem from gemfile and add ‘pg’ gem for postgres. Set the rails version to 4.1.2 (Turbolinks may not work with angular js)Step 3 : Run bundle installStep 4 : Change database.yml to use postgresdevelopment: adapter: postgresql encoding: unicode database: employee_details username: postgres… Continue reading Angular JS implementation with Rails 4

Rails 3 · ruby · Ruby On Rails

Naming conventions on Ruby & Ruby on Rails

Ruby Naming Conventions Local VariablesLowercase letter followed by other characters, naming convention states that it is better to use underscores rather than camelBack for multiple word names, e.g. mileage, variable_xyz Instance VariablesInstance variables are defined using the single “at” sign (@) followed by a name. It is suggested that a lowercase letter should be used… Continue reading Naming conventions on Ruby & Ruby on Rails

Ruby On Rails

SINGLE SIGN ON USING ACTIVE RESOURCE

Originally posted on RamOnRails:
Requirement:  There are two web applications AppX,AppY. All user relevant informations are stored under AppX. When user signing in into AppX, that time user session would be available in AppX. Because devise authentication mechanism is applied only on AppX. Also the same user session has to be applied for AppY,while user…

AJAX · JavaScript · JQuery

AJAX loader generator

Visit http://www.ajaxload.info/ Create easily your own ajax loader icon : Select the type of indicator you want Enter the background code color you want(tick “Transparent background” if you don’t want one Enter the foreground code color you want Press “Generate it”

Ruby On Rails

ArgumentError: invalid byte sequence in UTF-8

You might be receiving ‘ArgumentError: invalid byte sequence in UTF-8‘ error if the URL consists of invalid byte sequences like http://localhost:3000/users/signup?%28t%B3odei%29 To get rid of this error, just add the below to your Gemfile gem ‘utf8-cleaner’ and make bundle install. utf8-cleaner gem removes invalid bytes on the URL and save your app from the page… Continue reading ArgumentError: invalid byte sequence in UTF-8