CARVIEW |
Earn Rewards, Reputation, and Badges
Redeem the reputation points you've earned from participating in O'Reilly Answers for O'Reilly books, videos, courses, and conferences.
Recommended for You
Topics: rails
Feed subscription
Email subscription
Questions Only Feed
Questions Only Email

Please sign in or register to post.

Please sign in or register to post.
-
[Ruby on Rails] How does one render html from another web server to a Ruby on Rails app?
Asked by Minimal Samples : 03 February 2010 - 08:45 AM
Answered by Edd Dumbill: Feb 04 2010 10:03 AM
It's a simple procedure to programmatically fetch a web page from another site. Here's an example of this: def fetch_url(url) r = Net::HTTP.get_response( URI.parse( url ) ) if r.is_... full answer >
-
Parsing fixed-width fields in Ruby/Rails
Asked by simonstl : 06 November 2009 - 11:54 AM
Answered by kyle.burton: Nov 10 2009 10:00 AM
If the goal is just to externalize the configuration, there are several implementation strategies (yaml, arguments to a function, additional parameters if it's a rails controller etc). This is an... full answer >
-
How to compute distances based on zip codes
By mike-loukides: 26 October 2009 - 12:20 PM
If you're writing a web application, and you want to find places (restaurants, theaters) within a certain distance from your user, you'll probably need to work with zip codes. Here's a go...
-
How to package a Ruby on Rails application for Java EE
By mike-loukides: 26 October 2009 - 11:44 AM
Use the Warbler gem. From the JRuby Cookbook: Use Warbler to package your Rails application as a WAR file. Start by installing the gem: $ jruby –S gem install warbler This gem adds the warb...
-
How to add information to the Rails logs
By simonstl: 02 October 2009 - 11:27 AM
You may not have thought of it this way, but you’ve been working with Rails logs since the first time you entered script/server. All of that information flowing by is the development log. You can fi...
-
How Do I Set Up A Relational Database To Use With Rails?
Asked by sarahkim : 28 July 2009 - 01:01 PM
Answered by robble: Sep 08 2009 01:47 PM
First of all, because Rails defines at least three different runtime environments (development, test, and production), you should create a database for each. If you're using MySQL, start by cr... full answer >
- 1
![]() ©2009, O'Reilly Media, Inc. (707) 827-7000 / (800) 998-9938 All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners. |
About O'Reilly Academic Solutions Authors Contacts Customer Service Jobs Newsletters O'Reilly Labs Press Room Privacy Policy RSS Feeds Terms of Service User Groups Writing for O'Reilly |
Content Archive Business Technology Computer Technology Microsoft Mobile Network Operating System Digital Photography Programming Software Web Web Design |
More O'Reilly Sites O'Reilly Radar Ignite Tools of Change for Publishing Digital Media Inside iPhone makezine.com craftzine.com hackszine.com perl.com xml.com Partner Sites InsideRIA java.net O'Reilly Insights on Forbes.com |