| asoap | or another option, is there a way to use "check_box" and manually set some of them to be checked? |
| aKKiLLa | this is svn question... is there a way to add all files generated by a controler? |
| dasil003 | check_box_tag 'item[value]' |
| Akuma_ | dasil003: lpmusic: i'll stick with innodb. thanks for the tips |
| aKKiLLa | or an svn add that adds all new files |
| asoap | dasil003: i'll try that |
| dasil003 | asoap: the second param is whether or not it is checked... so you could do check_box_tag 'item[value]', params[:item][:value] to create a persistent form. |
| asoap | wicked |
| dasil003 | actually you might have to play with that, because if it comes back as 0 that will evaluate to true... |
| asoap | I think it's the third option for it being checked check_box_tag(name, value = "1", checked = false, options = {}) but thanks, I'll keep that in mind |
| dasil003 | hmm, so it is |
| asoap | man, I'm starting to get loopy from codin |
| dasil003 | just wait til you don't shit for a week |
| asoap | I've been having the opposite problem really |
| dasil003 | oh you mean coding. I thought you meant codeine |
| asoap | haha |
| mrturtle | do you need to use self. before method names in a model? It works without it, but sample code I see uses it |
| dasil003 | like too many painkillers I really do go to the bathroom while working, I swear. |
| asoap | hahahahahaha I was wondering if you sat on a cork all day? |
| dasil003 | mrturtle: The rule is if a bareword appears before an = then it will create a local variable, even if a method setter exists within the class. so if you do name = "Me" it will always create a local variable even if the attribute :name exists in the model on any other use you don't need self |
| mrturtle | but it doesn't hurt to use it, right? |
| asoap | man, I don't know what I ever did before dual monitors |
| dasil003 | no, it doesn't hurt (that I can think of) |
| asoap | maybe a little to much radiation *shrug* |
| mrturtle | thanks again dasil003 |
| dasil003 | np I recommend Ruby for Rails to learn some of those subtleties. |
| techfiz | Hey, I installed ruby-gd gem using gem install command, but I still get error in irb when I type in require 'ruby-gd' How do I fix it? |
| dasil003 | techfix: if it's just irb and not the rails console you need to manually require 'rubygems' first |
| techfiz | dasil003: I did try that but still get no such file found error require 'ruby-gd' LoadError: no such file to load -- ruby-gd |