| TooBe1ask1 | the error I'm getting when trying to run this is ... C:\InstantRails\rails_apps\rescue/app/models/test.rb:1:in `require': no such file to load -- ym4r\google_maps\geocoding (LoadError) I tried running this from the command line as well same result do I really need to actually put the ruby gems stuff on my "path"? Shouldn't that already be covered by the ruby interpreter itself? hello? |
| elux | in an AR model i override a method: def title=(x) attributes['title'] = x attributes['name'] = x.downcase.sub(' ', '_') end .. no errors, but neither attribute is updated.. any ideas? |
| TooBe1ask1 | hello? |
| technomancy | TooBe1ask1: you might have better luck with your question in the rails channel |
| TooBe1ask1 | yeah ... well ... :) no one is there either |
| technomancy | someone should teach corundum to recognize such questions and give an appropriate response |
| shevy | there should be more than here |
| technomancy | corundum: #rubyonrails? |
| corundum | no clue |
| shevy | silly corundum |
| technomancy | corundum: #rubyonrails is your question might be better answered in a channel like #rubyonrails that is all about rails |
| corundum | done |
| TooBe1ask1 | I think this is not a rails thing though ... it is just making use of a gem ... the file I created is just a .rb file ... I even tried running just that file from the command-line "ruby test.rb" so I don't think this has anything to do with rails per se |
| technomancy | TooBe1ask1: maybe so... but i don't think there are many people in here with knowledge of that gem or rails on windows not saying you should shut up, just saying that might be why you're not getting answers |
| TooBe1ask1 | hmmmm have you used other gems yourself? If so, did you have to add anything to some sort of path variable to let the ruby interpreter be able to "see" them? |
| technomancy | you usually have to require rubygems first |
| TooBe1ask1 | ahhhh |
| technomancy | rails usually does that for you but it varies based on setup |
| TooBe1ask1 | that was it!!!!! "require rubygems" as the first line fixed it thanks! |
| technomancy | weird... so i guess instant rails doesn't use gems... wouldn't have thought that would fix it. np |
| TooBe1ask1 | well ... it probably does |
| teferi | slapaho: of course I do it's not an either-or situation |
| TooBe1ask1 | I was just trying to run this as a standalone rb file for now ... just to see what I could do with it thanks again folks! |
| slapaho | teferi, you're just saying if you want an action/method var to not be available to views, you just use a local var instead of an ivar, correct? |
| teferi | you're totally thinking about it the wrong way if you're writing Rails controllers, you generally use ivars JUST for stuff you want in the view |