| DannoHung | weswh-: also "for line_item in @estimate.line_items |
| paul0 | anyone already had this problem? |
| tim^ | weswh-, also, still need to get right of the params[:line_item] from your save call |
| SCSmith | sheldonh: 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 |
| sheldonh | SCSmith: good luck :) good night all |
| eventualbuddha | paul0: make sure you're in development mode |
| paul0 | eventualbuddha, yes, i am |
| tim^ | weswh-, ah ok :) save(true), or save(false) saves without validation so keep an eye out ;) |
| paul0 | eventualbuddha, i've turned off the caches_page, also |
| eventualbuddha | paul0: are you editing the right file? and saving it? |
| paul0 | eventualbuddha, 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? |
| eventualbuddha | paul0: did you, at one point, have page caching set up? there may be a file there |
| paul0 | eventualbuddha, i had caching set up, but i've turn it off |
| NewMonarch | tim^: Doesn't seem like attr_accessible does the trick. |
| tim^ | NewMonarch, oh? hm i'll have a play |
| eventualbuddha | paul0: right, but caching writes files to the disk they may still be there |
| paul0 | eventualbuddha, in tmp/cache ? nothing is there |
| tim^ | weswh-, which pastie was it again? |
| eventualbuddha | paul0: what about in public? |
| weswh- | http://pastie.caboo.se/57503 |
| paul0 | eventualbuddha, SHIT |
| vipaca | Does anyone know why path_prefix doesn't work? |
| weswh- | currently, that returns product_id's |
| paul0 | eventualbuddha, 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) |
| vipaca | mevermind |
| blarf | hmm |
| NewMonarch | tim^: Don't break your back over it. I just did it the long-handed way for now. |
| tim^ | weswh-, <%= line_item.product.name %> |
| odw199 | next problem I'm afraid: http://pastie.caboo.se/57524 |