Re: [Rails] Depot app from 'Agile Web Development with Rails'

2010-09-19 Thread radhames brito
Yes but only if you buy it from pragmatic bookshelf ( i didnt : / ) its UD$53, but at amazon they have it for US$29. anyway i assumed he has the 3 edition. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email

Re: [Rails] Depot app from 'Agile Web Development with Rails'

2010-09-19 Thread Colin Law
On 19 September 2010 22:03, radhames brito wrote: > > "Are you saying they aren't using the 'better ways" of doing things in the > latest tutorial that is in their latest book for Rails 3? (Just curious > because I'm using it as a guide for my learning as well.) " > > > the book for rails 3 is not

Re: [Rails] Depot app from 'Agile Web Development with Rails'

2010-09-19 Thread radhames brito
"Are you saying they aren't using the 'better ways" of doing things in the latest tutorial that is in their latest book for Rails 3? (Just curious because I'm using it as a guide for my learning as well.) " the book for rails 3 is not out , it will be out in January 2011 http://pragprog.com/titl

Re: [Rails] Depot app from 'Agile Web Development with Rails'

2010-09-19 Thread Rick R
On Sun, Sep 19, 2010 at 8:21 AM, radhames brito wrote: > surely , but i warn you that that tutorial {in the book 'Agile web > development with Rails"} is very old, there are better way to do everything > now. > > > Are you saying they aren't using the 'better ways" of doing things in the latest

Re: [Rails] Depot app from 'Agile Web Development with Rails'

2010-09-19 Thread radhames brito
forgot to add the 'end' current_item = CartItem.new(product) > unless params[:quantity].blank? > current_item.quantity = params[:quantity] > end > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this gr

Re: [Rails] Depot app from 'Agile Web Development with Rails'

2010-09-19 Thread radhames brito
surely , but i warn you that that tutorial is very old, there are better way to do everything now. [code] <% form_remote_tag :url => { :action => 'add_to_cart', :id => product } do %> <%= text_field_tag :quantity%> <%= submit_tag "Add to Cart" %> <% end %> [/code] [code] # store_controller.rb

[Rails] Depot app from 'Agile Web Development with Rails'

2010-09-18 Thread Mitko Kostov
In the book 'Agile web development with Rails", the authors are building a store-like app. At some point they add dynamic adding a product with ajax call. [code] <% form_remote_tag :url => { :action => 'add_to_cart', :id => product } do %> <%= submit_tag "Add to Cart" %> <% end %> [/code] [cod