search for: product_url

Displaying 2 results from an estimated 2 matches for "product_url".

2014 Mar 09
0
rails with mongodb
...uct name description price:float" .. It generated some of the files in the app/view folder and one the file named "index.json.jbuilder" . And the file contains this code "json.array!(@products) do |product| json.extract! product, :id, :name, :description, :price json.url product_url(product, format: :json) end" .. What does this code actually mean.i'm not able to understand it.. Any suggestions would be helpful . -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" g...
2006 Jul 28
11
Forum
Im making forum and i have problem with paths. Here is code: http://pastie.caboo.se/6389 With this code, it works. But its a bit weird to use so many paths function. For every path i need to make new function. So can you suggest me something. Tables are like here: http://wiki.rubyonrails.com/rails/pages/ForumExample -- Posted via http://www.ruby-forum.com/.