#rubyonrails - Sun 4 Mar 2007 between 07:20 and 07:54

NY Lost Funds



rellikis it possible to follow those links?
it is a paginator, and I need all the pages not just the first
gma_rellik: I think you'd need an HTTP client that knew javascript
rellik: don't know if any ruby libraries can do that, but would be surprised
rellik: unless somebody has wrapped firefox
worth a google though
djsmacedowhy scaffold define new and create methods?
rellikyeah.. been looking for a while now :)
gma_djsmacedo: presumably because new is for making a new object in memory, whcih you should call save on. create does them both in one step.
djsmacedogma_: only create not suficcient?
i think this is code excess
what's wrong? (http://pastie.caboo.se/44572)
gma_not sure
do you mean "why the error?"
djsmacedoyes
(my english not so good)
gma_maybe you meant :through => :items
?
djsmacedo:menus_items is other table
gma_ah
djsmacedomany-to-many
gma_fair
you've not pasted the Item model
djsmacedoits better use an array of items in menus table?
gma_that needs has_many :menus, :through => :menu_items
(I presume, as something is trying to access Item's menu_items
)
djsmacedogma_: i'll use an array field in menus table
gma_: instead many-to-many, it's more easy :)
gma_it's also a bit stinky
many to many isn't that bad; once you get the has_many stuff sorted it just works.
djsmacedogma_: but i'm only need to store the items of menus
gma_: like order products, but more simple
gma_what's an array column? do you mean you'll munge the data in the field in ruby?
djsmacedoarray of ids
1, 5, 16, 23 :)
gma_is it a native database column type?
or a string with some numbers in?
djsmacedostring with numbers
menu.items.to_s?

Page: 2 9 16 23 30 37 44 51 58 65 72 79 86 93 100 107 

IrcArchive

NY Lost Funds