Latest Posts:

Comparison of Java and Ruby on Rails with Hobo posted on 14 Apr 2016 02:41

Do you want to see the difference of Ruby and Java? (read more…)

Comments: 0, Rating: 0

Self Publishing: Publitory and Opal Browser posted on 31 Aug 2015 13:01

Publitory is a self publising site. You can publish PDF and EPUB directly or you can convert word documents to EPUB. There are free as well as paid eBooks. (read more…)

Comments: 0, Rating: 0

Cool scopes with Rails 3 posted on 04 Jul 2013 15:24

Usually testing existance of associations with SQL is a hell. But rails 3 handles very difficult cases without extra gems. There is no need to use INNER OUTER JOINS, etc. If somebody wants to define the scopes below then SQL comes to mind first. I`ve searched Stack Overflow and could not find any good examples: (read more…)

Comments: 0, Rating: 0

Powerful Rails 3 Templates posted on 30 Aug 2012 09:28

Rails 3 templates or Thor scripts can do any kind of modification on source code. As regular expressions can hunt for syntax patterns; you can replace existing methods with new definitions. For example: (read more…)

Comments: 0, Rating: 0

Hobo Template - Creating a blog under a minute posted on 20 Aug 2012 15:23

You can use this template to create a blog with hobo in a few seconds: (read more…)

Comments: 0, Rating: 0

Template for DRYer rails demo blog posted on 17 Aug 2012 14:15

In Getting Started with DRYer Rails 3.2, I showed how small code you need to create a blog or any other application. But where is the code to try? Here is the rails template to create a DRY demo blog for you. Simply do

rails new demo_blog -m
#Note that you need bundler and rails gems in your system or current rvm environment.
(read more…)

Comments: 0, Rating: 0

Trying HOBO for Rails 3.2 -or- Trying an unreleased Gem directly from GitHub posted on 07 Aug 2012 11:41

Hobo is an excellent framework to generate production ready applications in a minute. However, it's not realeased yet for Rails 3.2 . You can use the strategy described here in general to create projects installing edge gems directly from GitHub. (read more…)

Comments: 0, Rating: 0

Getting Started with DRYer Rails "~>3.2" posted on 07 Aug 2012 09:34

Following Edge Rails Guides gives you a demo blog. You can make a much DRYer version. This allows you quickly protype yet staying in the boundaries of standard "Rails". After creating new rails project Append this bit to the end of "config/application.rb":

DemoBlog::Application.configure do
  config.generators do |g|
    g.scaffold_controller :inherited_resources_controller
    g.orm :hobo
(read more…)

Comments: 0, Rating: 0

Fixing "Getting Started with Rails.Edge' posted on 02 Aug 2012 10:22

Newly generated rails 3.2 projects has a very small small glitch. Follow Edge Rails Getting Started. However, before starting

rails server

uncomment this line in 'Gemfile'
gem 'therubyracer', :platforms => :ruby

. (read more…)

Comments: 0, Rating: 0

Begin Ruby on Rails posted on 14 May 2012 14:38

See Begin Ruby on Rails Here . I compiled links to start learning Ruby and Rails when a friend asked me where to look. So here is a good set of links to start learning Ruby on Rails. (read more…)

Comments: 0, Rating: 0

Installing GOSU - The game engine for Ruby posted on 24 Mar 2012 22:09

Even the kids can write games however, you need those libraries on your Ubuntu. After that you can enjoy Ruby4Kids and follow installation instructions for Gosu:

sudo apt-get install mesa-common-dev libopenal-dev libvorbis-dev libsndfile1-dev libfreeimage-dev libsdl1.2-dev libsdl-ttf2.0-dev freeglut3-dev libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev libopengl-ruby1.9.1
(read more…)

Comments: 4, Rating: 0

Start your HTML5 Graphics Applications posted on 17 Feb 2012 14:05

Processing.js is the sister project of the popular Processing visual programming language, designed for the web. Processing.js makes your data visualizations, digital art, interactive animations, educational graphs, video games, etc. work using web standards and without any plug-ins. (read more…)

Comments: 4, Rating: 0

Ruby on Rails Weblog posted on 04 Feb 2012 04:34

Ruby on Rails Weblog is nice collection of pages about Ruby. You walk the pages without leaving the trail. (read more…)

Comments: 3, Rating: 0

Tagging & Ruby on Rails posted on 07 Jun 2011 15:17

Just read Tagging Tutorial and get ready for blazing fast and easy tagging on your objects. All thanks to Soveran/ Ohm: The library that maps ruby objects to Redis . (read more…)

Comments: 82, Rating: 1

Rails: Search Comments Only posted on 04 Jun 2011 12:51

You can only inside the comments of your ruby files:

rake notes:custom ANNOTATION=\(.*find_me.*\)
(read more…)

Comments: 58, Rating: 0

Redis Server Setup on Ubuntu posted on 22 Mar 2011 15:34

If you have maverick: (read more…)

Comments: 85, Rating: 0

Using Hobo Edge on Rails 3 posted on 06 Mar 2011 01:18

!!!Hobo is not yet compatible with rails 3.2 so be sure to have "gem rails, "=3.1" in your Gemrfile.
[[/div]] (read more…)

Comments: 71, Rating: 0

Rails: Match each has_many with a belongs_to posted on 25 Feb 2011 21:53

Matching each belongs_to to a has_many might be tedious. You can check it on the bash shell:

A=parent_class; B=child_class; grep -R :$B app/models/*.rb | grep has_many | grep $A; grep -R :$A app/models/*.rb | grep $B

Then you'll see clearly parent and child classes are matching:
./parent_class.rb:  has_many :child_classes,                                  :dependent=>:destroy
./child_class.rb:  belongs_to :parent_class
(read more…)

Comments: 38, Rating: 0

git status. Oh my god there are many untracked deletes posted on 22 Feb 2011 16:44

git status is reporting that there are many deleted files. And you really want to remove them from repository. Do 'git rm' one by one? No, you don't need to:

git status | grep deleted:  | cut -d: -f2 | xargs git rm
(read more…)

Comments: 63, Rating: 0

Ruby on Rails: When many tests are failing posted on 11 Feb 2011 15:08

You need to correct an application but so many unit tests are failing. You're lost in the verbosity of the output. You can filter out the test results.

rake test | grep test.rb | cut -d: -f1 | sed 's/\[//g'
(read more…)

Comments: 37, Rating: 1

page 1 of 212next »

See all posts

Listed by
Web Development & Design Blogs - Blog Top Sites
blog directory
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License