CakePHP vs Ruby on Rails
Ruby on Rails or PHP, this is the dilemma.
I think that Ruby on Rails is the greatest web development framework i have ever used, but Ruby is too slow, needs the deploy of some libraries, and can be a hell when you need to scale.
On the other side PHP is tedious, but scale well and [...]
What’s new in Rails 2
Today i was reading about the new features of Rails 2, there are a lot of changes, for an overview you can checkout the official rails blog announcement. Here is a little list of major changes and new features:
ActionMailer::Base.server_settings Deprecated
1.month.from_now.no_longer.effed
Source Code Annotations
A Better Way to Access Your Helpers
Stop Littering In Your Environment File
ActiveRecord Caching [...]
Migrating to Rails 2.0
Today i have done some migrations to Rails 2.0.
Here is a quick todo checklist to upgrade your rails 1.2 to rails 2.0:
Install Rails 2.0, for example with gem install rails
Update system gems with gem update –system
Change the value of RAILS_GEM_VERSION to 2.0.2 in your environment.rb
Add the following lines to your environment.rb:config.action_controller.session = { :session_key => [...]
Ruby on Rails misc resources
What is Ruby on Rails? http://www.onlamp.com/lpt/a/6251
RubyOnRails Wiki http://wiki.rubyonrails.com/rails
Installing Ruby, Gems, and Rails http://wiki.rubyonrails.com/rails/pages/GettingStartedWithRails
Instant Rails http://instantrails.rubyforge.org/
Locomotive for Mac OS X http://locomotive.sourceforge.net/
Getting started with the Ruby programming language. http://www.loudthinking.com/arc/000199.html
Ryby Docs http://www.ruby-doc.org/
ONLamp - Rolling with RoR [...]
Ruby on Rails Optimizing Performance
Ruby on Rails is very fun, i love it, but Ruby sometimes can be slow.. So here there are some hints to speed up your Ruby on Rails web application.
Rails Performance Tips
Common Performance Problems in Rails - Pros and con between SQLSessionStore and MemChacheStore session containers, tips on optimizing queries, and general information regarding how [...]
Sanitize HTML in Ruby
RSS have a design that make it easy to generate and fun for webmasters, but it’s a hell for anyone that must write a feed consumer.Here is some links about html sanitization in Ruby on Rails.
Links:
Sanitize HTML in Ruby
Sanitize HTML to prevent XSS and page malformatting attacks
sanitize() and blacklists
acts_as_stripped: auto-stripping HTML from a field
How to [...]
FeedTools: Parsing feeds in Rails
How to parse RSS and ATOM feeds in Ruby in agile way?FeedTools is a simple Ruby library for handling rss, atom, and cdf parsing, generation, and translation as well as caching. It attempts to adhere to Postel’s law: i.e. a liberal parsing and conservative generation policy. It’s ideal for parsing RSS feeds in Ruby on [...]
Rails Security: Secure your Ruby on Rails web application
Ruby on Rails is a great Ruby framework for rapid development of web applications.
But default Rails comes with some (in)security features that must be hardened and fixed.
And a lot of the how to and tutorials in internet that publish the sponsor “websites in 5 minutes” help people to write insecure code.
Some examples:
File permission: default Rails [...]
Rails vs Django
Ruby on Rails and Django are two popular framework in web development.
Here you can found some comparison so you make your choice. I use RoR because is very fun.
Links:
Framework Performance
The Rails vs Django Paper
Catalyst vs Rails vs Django Cook off
Rails vs Django
Rails vs. Django: A Comparative Programming Exercise
A comparison of Django with Rails
A [...]
