Ruby on Rails »  News   

User Column
Tue, 27 Jul 2010 21:09:07 UT
I notice that there is a line in the logs called User Columns (1.3ms) [0m [0mSHOW FIELDS FROM `users` [0m, anytime I issue a query against a model, even if the queries don't do anything to the user model. This happens even on the console. Any ideas where this is coming from? Whats the best way to trace which

unique id custom creator - help
Tue, 27 Jul 2010 22:52:36 UT
I have a simple blog app that lets me create an entry with title and a body... real simple. In addition to the id that the database creates by default per each entry I would love to associate an unique id that uses 0123456789 and the 26 letters of the English alphabet. So that means I have 36^7 unique ids right? assuming I want to keep

[JOB] contract work, San Francisco area
Tue, 27 Jul 2010 23:27:55 UT
Our startup is about to leave the hushed darkness of the lab and step into the light by launching a web-based application. Our team has written the core "secret sauce", but we need a fast and accurate RoR development team or individual to assemble a framework around the core and to deliver a package ready to deploy on a commercial ISP.

paperclip, authlogic and callback issue
Wed, 28 Jul 2010 00:06:38 UT
I use authlogic for authentication and paperclip for handling user's profile picture attachments. I use the following method to get the current_user def current_user_session return @current_user_session if defined? (@current_user_session) @current_user_session = UserSession.find

An active list, but not very useful
Wed, 28 Jul 2010 00:21:49 UT
As of this post time, there were 33 posts out of the last 120 that were not answered. I understand that there are a lot of RTFB type questions on this list, but this list that has basically been useless. Where do you go to find help on something other than a RTFB type question? Steve Alex

Creating routes at run-time
Wed, 28 Jul 2010 02:05:44 UT
Hey guys. In Rails 2, is there a way to create a route at run-time? I want to do this because a gem that I'm writing requires a single resource route, and I'd prefer that the gem create it at run-time instead of forcing the user to define the route in routes.rb . While trying to figure this out, I discovered that calling

Which version of rails should I use?
Wed, 28 Jul 2010 04:43:43 UT
I'm looking to build a web interface for an existing Ruby app and I'm trying to figure out which version of Rails to use - 2.3 or 3.0. The reasons for using 2.3 are pretty straightforward: it's stable and I can buy a number of books on it. My reasons for considering 3.0 are: - My app uses Ruby 1.9 and Rails 2.3 does not seem to support Ruby 1.9

db:fixures:load does not call Model.save()
Wed, 28 Jul 2010 03:22:23 UT
Hello, $ ruby script/generate model balance plus:integer minus:integer equal:integer $ cat app/models/balance.rb class Balance < ActiveRecord::Base def save self.equal = self.plus - self.minus super end end $ cat test/fixtures/balances.yml _10-1: plus: 10 minus: 1

Problem loading YAML files and using pluralize method in Rails3rc
Wed, 28 Jul 2010 05:45:53 UT
Hi, I just upgraded my rails app from rails3.0.0beta4 to rails3.0.0rc and I'm having problems loading a yaml file. I have a load_config.rb in the initializers folder which loads a yaml file. The basic loading code is: FACEBOOK_CONFIG = YAML.load_file(File.join(Rails .root, 'config', 'facebooker.yml'))[RAILS_ENV]

Google map integration
Wed, 28 Jul 2010 08:04:43 UT
Hi, I am doing a google map integration using "geokit" and "YM4R/GM" plugin. Whenever I am passing the "area name" the it is ,marking that in google map properly. But my client wants whenever user adds the "IT Companies in India" then GMap should mark all locations of india where the companies are located.

How to understand Real time Project code
Wed, 28 Jul 2010 09:53:42 UT
Hai Dear All, I am fresher to Ruby On Rails.Presently i am in project. Could u please tell me how to start to understand the existing part of project?? i am little bit confusing. Please send me some good tricks or links to understand the current project Ok Thank You Waiting for Your Sweet Reply!!!!!!!!!!

Rescuing Errors
Wed, 28 Jul 2010 10:26:38 UT
Ideally, what I need is a method of rescuing ALL errors that can occur on a site by sending those errors (including the time they occurred) to a specified address. What would you advise?

Mulitple submit button in a form
Wed, 28 Jul 2010 13:10:46 UT
Hi, I've trying to find during hours why the params name of the buttons are in my parameters... I would like to know why submit button was clicked. I taught the name of the submit button was in the parameters but it"s not. Someone has an idea why? <% form_for @image, :url => eval(@assist_uri), :html => { :id =>

draw ER Diagrams for models
Wed, 28 Jul 2010 14:01:31 UT
Hi I would like to know the relations ship between models by using er diagrams. How it is ?? please suggest me

production.log ownership switched to root -> app is down
Wed, 28 Jul 2010 14:04:47 UT
Hi all, We are facing a problem we can't resolve for now. We have an application where sometimes production.log ownership switches from www-data to root. It crashes the application, as it is run by www-data user. We use Phusion Passenger with Nginx on Debian and the default user is set to www-data. We have several Rails processes that could possibly write to the log. We

how to update a single table cell using ajax
Wed, 28 Jul 2010 15:30:25 UT
I'm trying to update a table cell based upon a selection in another cell identified as "descPlaceholder". However, instead of getting the intended cell updated the updated string gets displayed completely outside of the table in a seemingly arbitrary spot on the form. The form: <table> <tr> <th>Code</th>

A Rails 3 centric Gem with it's own routes.rb?
Wed, 28 Jul 2010 16:33:39 UT
I am working on a Gem for Rails 3 apps. In it, I want to include another GEM/lib/app/config/routes.rb to have gem level access to add new routes non programmatically. i.e., not runtime generated. During Gem initialization I am adding the gem's lib/app/config dir to $LOAD_PATH and AS's Dependencies module like so.

bundler 1.0.0 RC makes me crazy
Wed, 28 Jul 2010 16:34:52 UT
Hi everybody! We recently upgraded to Rails 3 RC which requires new bundler 1.0.0 RC. After a day wasted trying to make it work we now give up. Our config is as following: — Debian — Ruby Enterprise — Rails 3 RC — Apache — Passenger We are stuck with following error thrown at us by passenger:

How to create a 'suggestion' app.???
Mon, 26 Jul 2010 22:45:53 UT
Hi there, I'd like to have a go at building an app whereby people fill in a series of questions based on their ski/snowboard taste etc... Once completed, the app suggests a specific board for them to purchase. Now the buying part isn't important, but the isea of being able to suggest a ski or snowboard is what I want...

Default rendered error file and hash to nice string how to
Mon, 26 Jul 2010 23:09:55 UT
Hi, When rails raises an exception which file (view?) gets rendered and outputs in the browser the backtrace, request, parameters, etc. I'm asking that because I'd like to know if Rails provides an easy way to convert a hash to a readable string, eg: "{:key => 'value'}" instead of yukky #to_s which gives "keyvalue".


 1  2  3  4  5  6   »

Categories

Ads