#rubyonrails - Fri 30 Mar 2007 between 10:17 and 11:12

NY Lost Funds



actionkwolf is away: Estoy ocupado
kwolfis away: Estoy ocupado
actionJasonKing thought ActiveRecord wrapped up table and column names to protect them from keyword clashes
JasonKingthought ActiveRecord wrapped up table and column names to protect them from keyword clashes
kingnothingwould I have to do anything special to use a PHP contact form as part of a page in a rails application?
JasonKingYou mean like penance?
koppenJasonKing: the adapters try, and fail on some occasions
JasonKingkoppen, 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...
koppensounds like patch opportunities to me :)
JasonKing...there are backticks elsewhere though, and a quote_column_name method which wraps it's argument in backticks.
AnakinKainYo 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.
OpenStandardsdamn rest looks nice
acmHow safe is it to override the initialize method in a model?
pythonicacm: 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
acmSo, if I want to force a field to be the current date, I'd do that in my initialize method, right?
pythonichmm.. you may want some arguments on that.
acmOr is there a better way to do that?
Bongo`acm: before_save or something+
acmBongo`, will look into that.
CatfishAre there any decent public EC2 rails images?
acmHowever, 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.
smeevilcould 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
koppensmeevil: I think that might be a class constant, so Date.ABBR_MONTHNAMES
smeevilkoppen that was the first thing i tried :) give undefined method `ABBR_MONTHNAMES' for Date:Class
Bongo`::
smeevilkoppen, just added the array meself now, not a biggy :P
acmsmeevil: require 'date'
smeevil: then use Date::ABBR_MONTHNAMES
smeevilacm ahh the :: was the trick :)
thanks !
acmsmeevil: glad to help.
awadare 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

Page: 2 9 16 23 30 37 44 51 58 65 72 

IrcArchive

NY Lost Funds