#rubyonrails - Sun 29 Apr 2007 between 20:30 and 20:39



DannoHungweswh-: also "for line_item in @estimate.line_items
paul0anyone already had this problem?
tim^weswh-, also, still need to get right of the params[:line_item] from your save call
SCSmithsheldonh: yeah thats not in my code just the example i gave from the plugin - thanky you
tim^weswh-, you just want if @line_item.save
weswh-tim^ - sorry, yeah just forgot to change that in the paste
sheldonhSCSmith: good luck :)
good night all
eventualbuddhapaul0: make sure you're in development mode
paul0eventualbuddha, yes, i am
tim^weswh-, ah ok :) save(true), or save(false) saves without validation so keep an eye out ;)
paul0eventualbuddha, i've turned off the caches_page, also
eventualbuddhapaul0: are you editing the right file? and saving it?
paul0eventualbuddha, yes
hm
but is just the routed url, that doesn't get update
if i access it via /debates/show/4, it is fine
but when i access via /debates/2007/4/20/4 , it doesn't work
weswh-ok, I have it returning product_id now. But, I also have line_item belongs_to product, and product has_many line items. I should be able to reference the product model, and instead of printing a product id ("3"), print the actual product name? Can that be done in the view?
eventualbuddhapaul0: did you, at one point, have page caching set up? there may be a file there
paul0eventualbuddha, i had caching set up, but i've turn it off
NewMonarchtim^: Doesn't seem like attr_accessible does the trick.
tim^NewMonarch, oh? hm i'll have a play
eventualbuddhapaul0: right, but caching writes files to the disk
they may still be there
paul0eventualbuddha, in tmp/cache ? nothing is there
tim^weswh-, which pastie was it again?
eventualbuddhapaul0: what about in public?
weswh-http://pastie.caboo.se/57503
paul0eventualbuddha, SHIT
vipacaDoes anyone know why path_prefix doesn't work?
weswh-currently, that returns product_id's
paul0eventualbuddha, the cache files was there
eventualbuddha, thanks!
weswh-tim^: final step is to turn that product_id into product.model (like what is gathered into that select tag in the view form)
vipacamevermind
blarfhmm
NewMonarchtim^: Don't break your back over it. I just did it the long-handed way for now.
tim^weswh-, <%= line_item.product.name %>
odw199next problem I'm afraid: http://pastie.caboo.se/57524

Page: 4 11 18 25 32 39 46 53 60 67 74 81 

IrcArchive