Tags » Ruby On Rails

Install Sublime 3, Scite Editor for Ruby, Rails

SUBLIME 3 :

Platform : Linux
> Installation

First you need to add a ppa-repository into your sources.list

$ sudo add-apt-repository ppa:webupd8team/sublime-text-3

Then update your system. 332 more words

Home

Adding RSS Feed for website rails 4

posts_controller

def feed

       @posts = Post.where(‘status = ?’, AppConstants::APPROVAL_ACTIVE).order(“updated_at desc”).limit(10)

       posts_ids = @posts.pluck(‘id’)

       assets = Asset.where(‘ref_id IN (?) and default_image_id = ?’, posts_ids, AppConstants::DEFAULT_IMAGE_VALUE)

       @posts_default_image_hash = Hash.new… 183 more words

Hide database queries in Rails console

Most of the time I think it’s useful to see what database queries your commands are generating in the Rails console. The rest of the time the output gets in the way by spamming your console output. 61 more words

Tips & Tricks

Testing Gems with Multiple Versions of Rails

I recently published a gem that enables dynamic error page generation in Rails. At the time the latest available version of Rails was 4.0.5, so I developed the gem using that. 557 more words

Ruby

If You Want a Job, Wake Up and Smell the Coffee

I must confess.  Although I like gadgets, I am not a techie per se.  Many of us enjoy technology and believe that we are well versed in it.  1,799 more words

Employment

Migrate Ruby on Rails Database from Sqlite to MySQL

Today I’ve migrated the database of Ruby on Rails project from Sqlite to MySQL. It’s not first time I’ve done it. So, I decided to note it as a post. 95 more words

Software Development

Angular JS implementation with Rails 4

Step 1 : Create rails app using rails new employee_details
Step 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) 717 more words

Ruby On Rails