#rubyonrails - Wed 16 May 2007 between 03:53 and 04:01

NY Lost Funds



AdamWittNah, didn't have attr_accessor
lpmusicAdamWitt: that might help :)
AdamWittyou sure it's "_accessor" and not "_accessible"
I cant find accessor in api o.O
lpmusicyes
AdamWittokidoki
Dumb question, but is it in the api?
I can't seem to find it o.O
lpmusicattr_accessor :password
AdamWittnvm
lpmusicya, it's that :)
AdamWittfound it
nakawireCan anybody here help me implement syntax highlighting abilities for my app? I found this: http://www.railsweenie.com/forums/2/topics/728 but I'm not exactly sure how to go about putting it together
AdamWittHrm, the API isn't very lay about it, so not sure how to use it exactly
In laymens terms, what does it do / how does it work?
TsarinOgredude: thanks - I didn't realize it still logged when I was in script.console
AdamWittlpmusic, still not sure how attr_accessor works o.O
When I put attr_accessor :terms_of_service into my controller, what am I actually doing?
The only thing the API says is "Equivalent to calling ``attrsymbol, true on each symbol in turn."
ScottTheiGuyStevenSoroka: Ah, I apologize, my assumptions were wrong. Mysql's normal text type holds more than I thought. Thanks though.
lpmusicAdamWitt: into the model, not the controller :)
AdamWittahh
Ok, so I stick it int the model
What is that doing to :terms_of_service
lpmusicAdamWitt: it's creating the attribute
acetoxyAdamWitt: attr_accessor :terms_of_service creates getters and setters for @terms_of_service
Jumb0Anyone know how, in RJS, to stop a page element from updating until after a visual effect is finished?
AdamWittAhhh
lpmusicnormally, rails finds the columns and creates those attributes
attr_accessor does it manually
AdamWittGotchya
acetoxyNo, it does it automatically
:)
lpmusicacetoxy: well, you know what i mean :)
Jumb0anyone?
acetoxySo you dont have to do it by your own ;)
AdamWittSo do I need to have anything in my controller?
lpmusicAdamWitt: no
AdamWittjust a checkbox in view called "terms_of_service" ?
lpmusicAdamWitt: model[terms_of_service], ya

Page: 2 9 16 23 30 37 44 51 58 65 72 79 86 93 100 

IrcArchive

NY Lost Funds