Displaying 4 results from an estimated 4 matches for "who_bought".
2009 Apr 16
3
Depot App Who Bought Enhancements
...s not exist. My preference would be to design the app to have a
list of hyperlinks presented when you visit the URL, http://localhost:3000/info/
that describes the list of "Info Functions" (eg "Who Bought" for
starters). Then when it takes you there, http://localhost:3000/info/who_bought/
you would see a list of Book Titles as hyperlinks so that when you
click on a book title, it redirects you to the appropriate URL for
seeing a list of customers "who bought" that book. In this way I
could avoid the user''s temptation to use "non-existent" product ID...
2006 Jul 28
2
newb question...
This is what it says when i have this stupid error...
app/controllers/info_controller.rb:9: syntax error
this is what is inside of info_controller,
class InfoController < ApplicationController
def who_bought
@product = Product.find(params[:id])
@orders = @product.orders
respond_to do |accepts|
accepts.html
accepts.xml
end
end
if someone could please help me...
-/ James
--
Posted via http://www.ruby-forum.com/.
2006 Jul 27
1
no method??
Whenever i type what the book says which is...
xml.order_list(:for_product => @product.title) do
for o in @orders
xml.order do
xml.name(o.name)
xml.email(o.email)
end
end
end
it gives me this error that says...
NoMethodError in Info#who_bought
You have a nil object when you didn''t expect it!
The error occured while evaluating nil.title
Extracted source (around line #1):
im a newb so if you could help me out that would be great!
--
Posted via http://www.ruby-forum.com/.
2006 Sep 15
7
is there a multiline ruby "comment" approach? like java's /* code */ ???
Hi,
Just wondering if there is a way to easy comment out a block of ruby code
without putting the "#" characters on each line?
Is there an equivalent to java''s /* */, for example:
/* askdf
asd
fasdf
as
dfasd
fa
*/
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: