[Rails] Rails is slow to load

2010-08-04 Thread Eric Yen
Hi, I was just wondering if this was normal or not. I was running ruby 1.8.7 with rails 3 - rc. (Currently trying 1.9.2- rc2 but the same problem) It takes rails a while to load. (a while as in 10-15 seconds) It will take a while before I can use the console , or before running a test or

[Rails] Re: Rails is slow to load

2010-08-04 Thread Eric Yen
That did cross my mind, but I was just wondering though. Mostly because it didn't look as though the transition from running the command to the actual test running wasn't edited. But oh well. On Aug 4, 2:54 pm, Fernando Perez li...@ruby-forum.com wrote: This doesn't seem normal to me when I

[Rails] Re: how to update a single table cell using ajax

2010-07-29 Thread Eric Yen
You can alwaus just do the following: td id=descPlaceholder -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to

[Rails] Migration: updating a column

2010-07-29 Thread Eric Yen
Hi, Is there a way to update a column? Here's what I mean: I have a column name item in table products of type integer Now I want to update the column to have the option :null = false So far, the only way I have found is to remove it and re-add it, but obviously that is quite dumb. -- You

[Rails] Re: Migration: updating a column

2010-07-29 Thread Eric Yen
Thanks. I was under the impression that change_column was only for renaming. On Jul 29, 9:19 am, Ar Chron li...@ruby-forum.com wrote: Have you tried change_column in a migration? http://api.rubyonrails.org/classes/ActiveRecord/Migration.html -- Posted viahttp://www.ruby-forum.com/. --

[Rails] Re: Ruby on Rails 3 RC and files in lib directory

2010-07-27 Thread Eric Yen
Hi, Ading config.autoload_paths += %W(#{config.root}/lib) to my application file solved it :) Thank you so much On Jul 27, 5:59 am, stephenjamesmurdoch stephenjamesmurd...@gmail.com wrote: Hi Nicolas, i think I've fixed the problem add the following to your application.rb file:     #

[Rails] Test - Skip Setup

2010-07-27 Thread Eric Yen
Hi, I want to write a functional test using the default test unit that is included with rails 3. Is there a way to skip a setup call? So I'm trying to test the users controller. But to access those actions, I need to be logged in. So I put a login algorithm in my setup. But I do not need to be

[Rails] Rails 3 - AJAX Response

2010-06-22 Thread Eric Yen
Hi, I need help with some AJAX in rails 3. So basically, I have a select option in my index page for my User model. This select option is a form that modifies the user's type. The :remote = true works and the type is changed when hit the submit button. But, nothing happens in the browser. The

[Rails] SQLite - show html from entry

2010-06-18 Thread Eric Yen
Hi, I have an entry in my database that has line breaks. I want those line breaks to actually appear as line breaks when the entry is displayed. So, I did something like: %= string_var.sub(\n,br:) % It partially works. It actually replaces the with lt and the symbol with gt. Is there a work