similar to: where is the root?

Displaying 20 results from an estimated 10000 matches similar to: "where is the root?"

2006 Mar 29
2
active record basics
i am reading Agile Web Development with Rails and i have some noob questions about it. i''ve gone through the depot application with hardly any problems and now i''m reading through the chapters that explain some of the deeper facets of rails. on chapter 14 it starts talking about active record. all the sudden, it''s showing examples of how to connect to the database.
2006 Feb 28
19
Session magic question
Greetings! I could really use some help understanding what Rails puts into the session store related to the objects it creates. I''ve found documentation on how _I_ can put / get info into it, but can''t find the docs on what _Rails_ puts into it. I''ve got a simple app that collects some data from the user, stores it in a db record, allows the user to edit it, display
2006 Apr 16
9
''depot'' app, where''s session?
Many of you probably know the ''depot'' app from the ''Agile Rails development'' book. I have constructed the ''products'' model, the Store-controller, and the ''Cart'' and ''Line Item'' classes. I have told Application-controller about :cart and :line_item: model :cart model :line_item Here''s part of
2006 Jun 07
7
file_column image versions
does anyone know much about resizing different versions of images with file_column? i tried it and everything works fine, but my question is can you do more than just make sizes with a version of image? i''m working on a photo album and i would like to resize the image to a medium size, but create a thumbnail as well and crop anything left to make the thumbnail a perfect square. --
2006 Aug 04
3
forms and relationships
i''m still pretty new to rails, and while i''ve been able to hack my way into having it do what i want so far, i''m not happy with the way my code looks. on top of that, i''m sure that what i''m doing prlly isn''t the most efficient either. one of my biggest problems is probably to do with using relationships and forms together. i''ve
2006 Jul 05
5
ok, lightTPD is installed... how do i use it.
i used the hivelogic article to install ruby on rails to my mac: http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger everything works great using the script/server command, but isn''t that still using WEBrick? how do i server my apps with lightTPD? i tried following the instructions given here: http://duncandavidson.com/essay/2005/12/railsonlighty but have had no
2006 Jun 20
5
ActionMailer to send to multiple people
I''ve been working with ActionMailer for a few days and finally have a pretty good grasp of it. In the book I''m reading, it shows how to send to multiple users or an array of users. Is there a setting or some configuration I can do to send the email to each person separately, or would I just need to loop through each user and send one email at a time? What is the best way to
2006 Apr 11
2
Extending Depot Example
Hi I am new to the whole Rails/Ruby world as having come from a MS .NET background, but I have followed the Depot example in the Agile Web Dev. with Rails book with relative ease. However as an exercise to see how much I had understood, I thought I would attempt to modify the example a bit and add a Quantity field to the store index so as to pass that value into the cart. I have extended the
2006 Jul 15
4
learning from typo.
i have a copy of the typo source on my desktop that i am going through just to get a better understanding of the rails framework and ruby itself. i''m fairly new to everything so it has proved to be very helpful and very inspiring. i''m stuck on a part though. i was trying to figure out how everything on the sidebar works. i found the components folder and started looking
2006 Feb 24
6
Changes to Class File Not Being Recognized by Webrick
Newbie, having good luck with Dave Thomas'' book ''Depot'' application until I discovered that changes to one of my .rb class files are not being recognized until I bounce the webrick server. Any ideas on this? Thanks. -- Posted via http://www.ruby-forum.com/.
2006 Apr 28
5
please explain web services
could someone explain some of the uses for a web service. i''m reading about how to make them, but i''m still not quite sure what they''re good for. i have multiple rails apps that i would like to pass user information back and forth to. i''m not sure if something like this could help me or not. thanks -- Posted via http://www.ruby-forum.com/.
2006 Jan 05
2
Agile Depot Tutorial Help
anyone can explain me why in the Agile Depot Tutorial application they use i.product_id to find if a product already exist in the cart, because the cart contains items, each of them references a product. I tried i.product_id like in the tutorial and i.product.i all of these 2 notation works , but i find the second seems more clean??? isn''t it. Any explanation will be fine Regards
2006 Jun 05
3
New to rails
Hi, I''m 8+ hours reading and working through the book "Agile Web Development". My brain is now mush :) I have some php experience but that about the extent of my programming experience. Anyway, I do have a question - for those who know the book or those who don''t - The product table has a column for an image link ..i.e. /images/something.gif As part of the exercise
2007 Feb 07
1
The Depot "Add to Cart" sessions question (2.ed agile book)
Hello, Im in the process of working my way through the 2.ed of the agile book. As many of you already know, the book goes through the regular development cycle of the Depot application. I have hit a wall when they started talking about the sessions and the exact mechanics of how an item is added to the session. The code looks like this: depot/app/controllers/store_controller: def add_to_cart
2006 Jun 06
3
help with date formats
i have a datetime field in my database that i need broken up. i want to display the date and the time in separate places. i tried looking through the api, but couldn''t find what i was looking for. if someone could please point me in the right direction to format dates, that would be great. thanks -- Posted via http://www.ruby-forum.com/.
2007 May 30
2
Depot - empty_cart with ajax
First of all id like to say hi to everyone from Argentina, im yet another Depot first-timer. Going through the example, i got to the point where my cart finally runs Ajax-based. And there is a line where Dave says, after all the job is done "You should see the cart in the sidebar update. And you shouldn''t see your browser show any indication of reloading the page. You''ve
2006 Jul 16
9
acl_system help is needed
i found Ezra''s acl_system plugin yesterday and i am trying to figure it out. based on the simple instructions on the site, it does exactly what i need but i''m getting some errors when i try to use it: NoMethodError in UsersController#index You have a nil object when you didn''t expect it! The error occured while evaluating nil.roles i am pretty new to rails and
2012 Mar 17
8
Agile web development with rails 4th edition adding sizes to the product
Hi I am going through the Agile web development with rails 4th edition book and I am trying to modify the depot application to allow the customer to select a size before purchasing a product. What and how would I have to modify the depot app to do this? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2006 Aug 15
3
update or alter cart
I want to modify and update the items in the Depot - "display_cart". Since the cart is in a session, its a little hard to get at the data. I just want to create a way to change quantities, prices and recalculate. Has someone done this, and could you point me to the right direction. Thanks Chas -- Posted via http://www.ruby-forum.com/.
2007 Aug 30
3
Rails - depot application
I''m doing the depot example in the Agle Web development book. I''m getting this error: "undefined method `product'' for #<BigDecimal:331ce70,''0.21E1'',8(8)> " "Extracted source (around line #9): 8: for item in @items 9: product = item.product 10: -%> 11: <tr> 12: <td><%= item.product%></td>"