Archive for the ‘ruby on rails’ Category
Friday, November 21st, 2008
The New York Times used Ruby on Rails to pull together, analyze and display election results in near real time on one of its busiest Web traffic days ever. How did nytimes.com scale up Rails — a framework known for quick development turnaround but less than lightning fast performance?
“The secret is, we didn’t,” Ben Koski told a session at the Professional Ruby Conference in Boston Tuesday. Instead, Koski and others in the Times’ interactive new media group used low-level SQL commands for some key data-manipulation tasks. And while some Rails purists might frown upon choosing SQL over Rails’ own higher-level interactions with data, Koski said the direct SQL commands helped slash the time needed to process thousands of records from 30 seconds to about 1 second — a major boost when election result files were literally being updated by the minute.
(more…)
Tags: competing python-based framework, django, load balancers, merb, professional ruby conference, rails web code, ruby on rails
Posted in ruby on rails | No Comments »
Monday, November 10th, 2008
In almost every app you create there is a contact form. Since you repeat the same steps over and over. So it’s better to create a ror plugin: contact form generator.
The generator gives you a good starting point for further modifications.
Specs will be generated if Rspec is available.
Dependencies: ActiveForm plugin
Installation
script/plugin install git://github.com/cs/active_form.git
script/plugin install git://github.com/masone/contact-form-generator.git
(more…)
Tags: contact form generator, contact form plugin, ror contact form plugin, ruby on rails plugin
Posted in ruby on rails | 1 Comment »
Wednesday, November 5th, 2008
Session hijacking
Stealing a user’s session id lets an attacker use the web application in the victim’s name.
Many web applications have an authentication system: A user provides a user name and
password, the web application checks them and stores the corresponding user id in the
session hash. From now on, the session is valid. On every request the application will
load the user, identified by the user id in the session, without the need for new authentication.
The session id in the cookie identifies the session.
(more…)
Tags: activerecordstore, authentication system in ror, cookiestore, rails session, session guidelines, session handling in ruby on rails, session hijacking, session storage
Posted in ruby on rails | No Comments »
Thursday, October 30th, 2008
CleverValidation is an extension to the existing rails validation methods that includes the ability to customize your validation error messages and features javascript functionality for adding a bit of interaction to your validations via scriptaculous effects.
Repository: git://github.com/two2twelve/clever_validation.git
Usage Example
(more…)
Tags: CleverValidation, error_messages, javascript, rails validation methods, ror plugin, scriptaculous effects, validation
Posted in ruby on rails | No Comments »
Sunday, October 19th, 2008
Find weather conditions in your Ruby script or application
Yahoo! Weather API
yahoo-weather provides an object-oriented interface to the Yahoo! Weather XML RSS feed detailed at developer.yahoo.com/weather.
People care a lot about the weather, which sometimes seems ironic given that they can just glance out the window, but we can all understand the fascination with details and forecasting.
(more…)
Tags: Find weather conditions in ruby on rails, ruby on rails weather api, RubyWeather, Weather Libraries, Yahoo Weather Ruby API, yahoo-weather
Posted in ruby on rails | No Comments »
Friday, October 17th, 2008
SSL requirement adds a declarative way of specifying that certain actions
should only be allowed to run under SSL, and if they’re accessed without it,
they should be redirected.
(more…)
Tags: ror plugin, ssl plugin in ruby on rails, ssl requirement, ssl_required
Posted in ruby on rails | No Comments »
Wednesday, October 15th, 2008
This plugin provides support for themes to the rails application environment. It supports theme specific images, stylesheets, javascripts, and views. The views can be in ERb (rhtml) or liquid formats. Optionally, you can configure the theme system to ignore any templates except liquid ones.
Usage
This plugin automatically makes any patches needed for theme support. You can
use the theme_generator to create the file structure needed, or create it
yourself.
(more…)
Tags: plugin for theme, support for themes, theme generator, theme plugin in ror, theme support
Posted in ruby on rails | No Comments »
Tuesday, October 14th, 2008
Engine Yard, the leader in cloud deployment and open-source tools for Ruby and Rails applications, today announced the first major release of its open-source framework, Merb
Merb is designed for building fast, high performance Ruby applications. Ruby on Rails is more featured while Merb aims to be simpler and more modular.
(more…)
Tags: abstractcontroller, applications, features of merb, higher degree, mailers, merb core, merb framework, merb plugin nursery, merb plugins, merb processes, open source, plugins, rails
Posted in ruby on rails, software | 3 Comments »
Monday, October 13th, 2008
This plugin will automatically add Google Analytics code to all of your pages, instead of manually having to add it to app/views/application.rhtml. You put your tracker id in config/environment.rb and it Just Works. It will, by default, only work in production mode, and you can switch it off for particular controllers and actions.
To install it, add plugin repository to your rails plugin sources:
script/plugin source http://svn.rubaidh.com/plugins/trunk
and to install the Google Analytics plugin:
(more…)
Tags: Google Analytics Plugin, google_analytics_code, integrate google analytics, ror plugin, ror plugin for google analytics, ruby on rails plugin
Posted in ruby on rails | No Comments »
Thursday, October 9th, 2008
Quick Rails plugin that allows you to send an SMS from your application. This does not require any kind of “gateway” or third-party service to get the job done. The plugin takes in a phone number, the carrier, and a message. From this information, it will format an e-mail correctly that will actually end up being sent to that phone in the form of a text message. How easy is it to use? Very.
You can grab the latest from GitHub.
git clone git://github.com/brendanlim/sms-fu.git vendor/plugins/sms_fu
(more…)
Tags: deliver sms, ruby on rails plugin, Send SMS, send SMS from application, Send Text Message in rails
Posted in ruby on rails | 5 Comments »