|AdamWitt||Nah, didn't have attr_accessor|
|lpmusic||AdamWitt: that might help :)|
|AdamWitt||you sure it's "_accessor" and not "_accessible"|
I cant find accessor in api o.O
Dumb question, but is it in the api?
I can't seem to find it o.O
|lpmusic||ya, it's that :)|
|nakawire||Can 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|
|AdamWitt||Hrm, 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?
|Tsarin||Ogredude: thanks - I didn't realize it still logged when I was in script.console|
|AdamWitt||lpmusic, 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."
|ScottTheiGuy||StevenSoroka: Ah, I apologize, my assumptions were wrong. Mysql's normal text type holds more than I thought. Thanks though.|
|lpmusic||AdamWitt: into the model, not the controller :)|
Ok, so I stick it int the model
What is that doing to :terms_of_service
|lpmusic||AdamWitt: it's creating the attribute|
|acetoxy||AdamWitt: attr_accessor :terms_of_service creates getters and setters for @terms_of_service|
|Jumb0||Anyone know how, in RJS, to stop a page element from updating until after a visual effect is finished?|
|lpmusic||normally, rails finds the columns and creates those attributes|
attr_accessor does it manually
|acetoxy||No, it does it automatically|
|lpmusic||acetoxy: well, you know what i mean :)|
|acetoxy||So you dont have to do it by your own ;)|
|AdamWitt||So do I need to have anything in my controller?|
|AdamWitt||just a checkbox in view called "terms_of_service" ?|
|lpmusic||AdamWitt: model[terms_of_service], ya|