| ReinH | wolves: do rake -T fixtures in your shell |
| wolves | ok, it will create a yml file? will it... |
| ReinH | wolves: it will list all rake tasks with "fixtures" in their name and their description |
| moldinaga | can I ask a newbie question without getting pissed on? Is this the right channel for such? |
| ReinH | wolves: the next step is left as an exercise for the reader ;) |
| HolyGoat | goodgoblin: per request, so they should be available then, yeah ReinH: I was about to give it to him, but now I won't :) |
| GaryKing | How do I add new data to a hash? |
| ReinH | HolyGoat: ;) |
| RaydenUni | moldinaga this is the right place |
| ReinH | GaryKing: Hash#merge is one way That's in the Ruby API: http://www.ruby-doc.org/core |
| GaryKing | there's no << way? |
| ReinH | GaryKing: search for Hash here: Check the rails API! http://labs.parkerfox.co.uk/ruby.search Read the pickaxe entry. |
| RaydenUni | GaryKing << doesn't make sense for a hash :P what would it do? |
| GaryKing | isn't there a hash[key] = value way |
| goodgoblin | HolyGoat - ah - ok - so in this case they haven't loaded for this request yet - I am putting them in a cart, putting that cart in the session, and then going to a new session, loading up the old session and getting the 'shirt' out - however I haven't explicitly loaded a Tshirt yet |
| ReinH | RaydenUni: alias_method :<<, :merge ;) GaryKing: yes, there is. GaryKing: hash[:foo] = "foo" exactly |
| HolyGoat | goodgoblin: You shouldn't have to explicitly load the Tshirt model |
| goodgoblin | HolyGoat: i just tried explicitly loading a Tshirt first and it worked - at least it barfed on the next object in the cart I hadn't loaded yet |
| ReinH | brb laundry |
| HolyGoat | goodgoblin: That's a bit strange though. They should be available. Where are you explicitly loading it? |
| action | HolyGoat is by no means a Rails expert yet, mind you |
| HolyGoat | is by no means a Rails expert yet, mind you |
| goodgoblin | HolyGoat: it might have something to do with the way I'm trying to do this - i'm using SQLSessionStore explicitly to create a new session. Its not 'Rails' code, its Stefan Kaes's code, and resides out in the /lib/ folder |
| RaydenUni | RaydenUni is lol |
| GaryKing | ReinH: @tags['foo'] = 'bar' gave me an error |
| HolyGoat | goodgoblin: Aha. That might explain the load order issue. |
| goodgoblin | HolyGoat - calling it from within a method within an ActionController |
| GaryKing | ohhh neato |
| HolyGoat | goodgoblin: Although.. if you're calling it from a controller, the models _should_ be loaded. |