| action | kwolf is away: Estoy ocupado |
| kwolf | is away: Estoy ocupado |
| action | JasonKing thought ActiveRecord wrapped up table and column names to protect them from keyword clashes |
| JasonKing | thought ActiveRecord wrapped up table and column names to protect them from keyword clashes |
| kingnothing | would I have to do anything special to use a PHP contact form as part of a page in a rails application? |
| JasonKing | You mean like penance? |
| koppen | JasonKing: the adapters try, and fail on some occasions |
| JasonKing | koppen, I'm looking at the mysql adapter, and it doesn't seem to try very much at all... koppen, things like: sql = "SHOW FIELDS FROM #{table_name}" No backticks - unless they're magically in table_name somehow... |
| koppen | sounds like patch opportunities to me :) |
| JasonKing | ...there are backticks elsewhere though, and a quote_column_name method which wraps it's argument in backticks. |
| AnakinKain | Yo yo izza we is using the prototype window system which uses inlines. I am wondering if it is a good idea to keep certain information and have it checked every .5 seconds? in a cookie that is. so that if some cases are true a set of code is run, and something can be done with the information inside that frame. |
| OpenStandards | damn rest looks nice |
| acm | How safe is it to override the initialize method in a model? |
| pythonic | acm: alias_method it and call the original ermm... initialize isn't usually defined on a model, but in ActiveRecord::Base, so just call super inside your initialize. class Foo < ActiveRecord::Base ; def initialize ; super ; foo ; end ; end |
| acm | So, if I want to force a field to be the current date, I'd do that in my initialize method, right? |
| pythonic | hmm.. you may want some arguments on that. |
| acm | Or is there a better way to do that? |
| Bongo` | acm: before_save or something+ |
| acm | Bongo`, will look into that. |
| Catfish | Are there any decent public EC2 rails images? |
| acm | However, I don't want to be able to enter the value for the `created_on` table column. I want to use that column as a timestamp. |
| smeevil | could someone please tell me how i can get the array of ABBR_MONTHNAMES from Date ? Date.new.ABBR_MONTHNAMES does not work also tried Date.new(ABBR_MONTHNAMES) . i'm not sure how to get access to Constants of an object |
| koppen | smeevil: I think that might be a class constant, so Date.ABBR_MONTHNAMES |
| smeevil | koppen that was the first thing i tried :) give undefined method `ABBR_MONTHNAMES' for Date:Class |
| Bongo` | :: |
| smeevil | koppen, just added the array meself now, not a biggy :P |
| acm | smeevil: require 'date' smeevil: then use Date::ABBR_MONTHNAMES |
| smeevil | acm ahh the :: was the trick :) thanks ! |
| acm | smeevil: glad to help. |
| awad | are there ways to get cool music players on ones website, say last.fm's or purevolume.com's? |
| Bongo` | im not sure what you mean but im working on a flash+rails player Rails will create custom made xml-file and flash will read in the files and then stream the files |