| anonuser | yeah change that check_box to a check_box_tag name it how you want http://api.rubyonrails.org/classes/ActionView/Helpers/FormTagHelper.html#M000610 its really easy name, value, checked |
| lrivers | is day_of_week == i the way to go? or should I use just 1 = |
| anonuser | ? for what? |
| lrivers | For looping through to see if there's a blank checkbox that needs to be created |
| anonuser | yeah |
| lrivers | see above |
| anonuser | that makes sense |
| lrivers | ==? or = |
| anonuser | == |
| lrivers | somehow, that's giving me 5 X appearance.count checkboxes rather than just 5 |
| anonuser | let me see the code. |
| lrivers | anonuser: hey, I appreciate your help, but right now I think I need to figure out how to implement to form_for stuff. You've helped me substantially, thanks! |
| anonuser | no problem I hope I wasn't too confusing |
| lrivers | plus, my brain hurts. I'm a marketer, not a fighter. I'm going to try some more tomorrow morning. anonuser: the confusion is all between the chair and the keyboard on this end. I'm way ahead of where I was. I sort of understand what I need to do. Fixing the create/new thing turned on some flickering lights, so I think I can stumble through thanks a million, seriously |
| anonuser | no problem. damn you gvim compiling with gtk1 support when i already have gtk2 installed! |
| nichoj | I need to yank some data out of an xml file for my domain objects. Sticking that in my model seems a little icky. Is there a better place to do that kind of thing? |
| rellik | how do I use validates_confirmation_of :password with encryption? I am enctryping before save, but that makes the validation fail.. should I encrypt the confirmation param or use a callback? I'm thinking callback but don't know exactly how to make that work |
| countrygeek | nichoj: One time, or ongoing at runtime? |
| nichoj | countrygeek, one time for now. eventually, I think I'll be needing to grokk and uploaded file |
| countrygeek | I usually write a load helper and run it with script/runner. nichoj: I am *NOT* a rails expert (yet) |
| nichoj | countrygeek, thanks! that helps a bit... didn't even know about script/runner :) |
| countrygeek | nichoj: You'll have access to *ALL* of your models, so you can leverage that, while doing special things with the XML data. nichoj: Run it like: script/runner -e development "ClassName.new().methodname('file.xml')", where the name of the file that contains ClassName is class_name. (Convention over configuration) |
| r3factored | im trying to implement a simple method interceptor similar to what i did in Spring to basically just log each method being hit. I have setup a def in ApplicationController and in one of the controllers i did a 'before_filter = :log_method' (log_method is the def name in AppController). Its not getting hit. |
| mcarr | this is freaking weird. i'm getting different output from <rake> , <rake test:functionals>, and <ruby some_test.rb> |
| r3factored | disregard - i just found it ;) |
| mcarr | for instance <rake> throws one error in auth controller, but if i do <ruby auth_controller_test> it's totally fine |