search for: wtf242

Displaying 7 results from an estimated 7 matches for "wtf242".

Did you mean: cf242
2006 Apr 11
9
Rails failure after upgrade to 1.1.2
Greetings, I tried upgrading Rails to 1.1.2 and now nothing is really working. In connection to the Rails upgrade I upgraded my Ruby version to 1.9.0. I also upgraded all my gem installs. Since my old rails apps stopped working I tried generating a fresh one , alas with the same result. Below I included the full trace when trying to reach the app. Line 3 in application.rb is : class
2006 Apr 14
2
Puzzled with filters
Hello everyone! I''m trying to create an after filter for all my actions in all controllers. I put it in application controller (application.rb). class ApplicationController < ActionController::Base after_filter :tidyit def tidyit xxxx # syntax error - intentionally end end I have a Example (example_controller.rb) controller with index action. class
2006 Apr 20
7
Rails + postgres case insensitive searches.
Hello all I am wondering how rails handles case sensitivity in databases. If I do a Person.find_all_by_name("tim") in mysql I would expect to get tim, TIm, and Tim. Do I only get tim in postgres? How do other people deal with this? Do you resort to find_by_sql for all your postgres queries to get case insensitive results?
2006 Jul 06
0
radio_button with boolean fields does not work with postgresql
I don''t know what I am doing wrong. I have a User class with a "send_message_emails" boolean field. The value for this is true. In postgresql this is stored as a "t" in the database. In Rails this field is a boolean and is set to true, but for some reason the following code is *not* working... the radio_button is not selected. <%= radio_button "user",
2006 Apr 18
1
Anyone get mini-magick plugin working on windows?
Ruby 1.8.4, mini-magick 1.1.0, ImageMagick-6.2.7-0-Q16-windows-dll.exe. I downloaded and installed the mini-magick plugin into my vendor/rails directory. When I try to start webrick it fails, but it does not display any errors. It just simply returns me to the command line. "Ruby script/generate model test" won''t even work. It acts the same way. It doesn''t throw any
2006 Mar 26
2
File_Column plugin causes strange errors on windows
I installed the File_Column plugin and setup my relationships. create_table "screenshots", :force => true do |t| t.column "image", :string, :limit => 255, :null => false t.column "description", :text t.column "created_on", :datetime, :null => false t.column "item_id", :integer, :null => false t.column
2005 Oct 27
0
has_one with Single Table Inheritance - NameError : uninitialized constant
I am having a problem with using SIngle Table Inheritance with a has_one relationship, and I am at a loss of what could be causing it. Below is the related code and the error message. class User < ActiveRecord::Base has_one :wishlist end class List < ActiveRecord::Base belongs_to :user end class Wishlist < List has_and_belongs_to_many :items, :class_name =>