Question
How to get url of object in controller
I've got a Product
model.
How do I get the url of a product in Rails 3, in a controller.
For example (pseudo code):
def foobar
@product = Product.first
puts @product.url
end
Is such a thing possible?
21 16441
21