How to generate dynamic javascript files with Ruby on Rails?
The problemI want to write JavaScript files that use dynamic informations via Ruby on Rails. I think my solution also works with rails 2 and 3. What can dynamic JavaScript do for you? You can write...
View ArticleHow to install Phusion Passenger for ruby 1.9.2
There are some easy steps to install Phusion Passenger for ruby 1.9.2 and apache2 on Ubuntu Linux. 1. Install rvm system wide sudo bash < <( curl -L http://bit.ly/rvm-install-system-wide )2....
View ArticleHow to use Padrino with mongodb
Padrino is a ruby framework built upon the excellent Sinatra Microframework.$ padrino g project blog -d mongomapper -t rspec -s jquery -e haml -c compass create create config.ru...
View ArticleRMagick install on Ubuntu 10.10 and 10.04
This small tutorial work on Ubuntu Hardy (8.04), Lucid 10.04 and Maverick (10.10)Install Imagemagick and GraphicsMagickapt-get install imagemagick graphicsmagick Install Image Magick development...
View ArticleDeploy rack applciaton
Make config.ru with following content:require 'rubygems'require 'sinatra'require './my_sinatra_application.rb'run Sinatra::Application You have to run bundle command. This will be install all necessary...
View Articlehow to install Ruby on rails webshop?
You have installed RoR3 and now you want to install a rails3 webshop.I think the best solution is Spree. This is the only rails3 based e-commerce solution at this time.How do you install this...
View ArticleRails 3 Content Management Systems (CMS) - 2011
I've collected all open source CMS based on rails 3.x.Rails CMS/Wiki/ForumThis is a very simple but feature rich CMS framework. It is good startpoint for a new rails project what will be wiki, Forum or...
View ArticleResolve Ruby on Rails UTF-8 error message: invalid multibyte char (US-ASCII)
I got the following error when i run a rake db:seed command on may RoR application:invalid multibyte char (US-ASCII)I found the soution and the error has gone away:You should add a line to your file:#...
View ArticleHow to translate attributes of mongoid model
Here is an example, what show the way you can translate your mongoid models: You can also customize error messages as you will see in the next example.User model translation Example: en.yml content:en:...
View ArticleLocomotive CMS
Today, I found a really good CMS. I'm looking for ruby 3 CMS for a while. I found this CMS solution that use my favorite NoSQL database system: MongoDB. I think multi site feature is rare in ror...
View Article