similar to: [ADV] Best of Ruby Quiz available

Displaying 20 results from an estimated 1000 matches similar to: "[ADV] Best of Ruby Quiz available"

2006 Apr 02
2
"Quiz" site
Hi, I am thinking about how to best design a quiz site in RoR. I think it should be fairly easy, but have run into a wall. In the simplest form, the view would grab all of the questions for a particular quiz and display them (e.g. multiple choice, so 4 option buttons per question). However, I can''t figure out how to "mark" the quiz. The form is submitted to the
2006 Mar 09
2
Newbie question: How to represent parent-child denormalization
I am building a relatively trivial application to try to learn my way around Rails. I am having difficulty understanding how to navigate a heavily denormalized hierarchy. Could someone direct me to a bare-bones explanation of using rails to navigate database hierarchies? I am an experienced developer. Most of my work has been desktop client server, high performance, or server to server
2006 Mar 14
1
I''m missing something obvious to a taglib programmer ...
I am trying to create, display and edit a referenced object''s text field on the same view as my root object. I have just about come to the conclusion that whoever invented of taglibs should be shot. quiz.preamble_presentation references a Presentation object instance. The Presentation object contains a property called text, among others. The generated form will display the ID of the
2006 Apr 20
1
Rails is losing key information
I am using ruby 1.8.4 with rails 1.0 under fedora core 3 on a WIntel platform. Rails appears to be losing key information under some circumstances. Specifically, in the Questions class that follows, the presentation_id property is apparently being lost. The STDOUT dump from the create method indicates that the presentation_id should be 42, but the dump from the database shows that it is 43,
2006 Mar 15
8
Tags to ruby interface: What I am missing? (repost)
I offer my apologies in advance for the repost. On a list as busy as this, it is sometimes easy to get missed in the shuffle. I am trying to create, display and edit a referenced object''s text field on the same view as my root object. For example: ------------------------- Quiz: <<quiz.name>> Preamble: <<quiz.preamble_presentation.text>> Postamble:
2006 Feb 21
1
[ADV] Next beta of Rails Recipes is available
The second beta of Rails Recipes, Chad Fowler''s killer book or writing real-world Rails, is now available. It features seven new recipes: * In Place Editing * Making Your Own JavaScript Helper * Many To Many With Attributes On The Relationship * Dealing With Time Zones * Living On The Edge * Making Your Own Rails Plugins (contributed by Rick Olson, aka technoweenie) * Polymorphic
2011 Mar 01
0
Quiz,chat
I am new to rails framewrok ,i have experience in PHP and LInux background.I am looking for some tutorial or famous app to create a Quiz and chat .I have implemented quiz and flat file and db based quiz in PHP,but i wanted to do it in Rila.Looking forward for community help. . . -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
2009 Dec 03
5
Bar Plots: Error Bars
Hey Everyone, I'm pretty new at R and wanted to try and make some graphs with dummy data before using it to analyze my own. I successfully made a bar graph and error bars, but I can't figure out how to align them properly (currently they are not centered on the bars and some of them aren't even close). Here's the code that I'm using: > marks <- sample(4:10, size=50,
2006 Jun 13
0
[ANN/ADV] Rails Recipes is Shipping
Hi All, Pragmatic Dave Thomas tells me that Rails Recipes (http://pragmaticprogrammer.com/titles/fr_rr) is now shipping! He and Andy apparently have over a ton of books to deliver. If you''ve ordered a paper book, it''s soon on the way. If you''ve been waiting, now''s the time. Amazon is also has the book in stock
2006 May 24
1
Best practices: a little pop-quiz on my blog
Hey, I just put up a little rails pop-quiz on my blog (more fun than just writing a post saying "hey did you know..."). Seeing as it''s probably of interest to more than just the three people (including my wife) that actually read my blog I figured it would be okay to announce it here. http://tinyurl.com/prxdl I''ll post my answers in a followup tomorrow
2007 May 10
0
Counterintuitive behavior in ActiveRecord I was implementing dirty checking for an application, and I found something that is a little counterintuitive. Let me start with a quick quiz: bob=User.find(1) alice=User.find(2) trip=Trip.new trip.driver=bob old_
I was implementing dirty checking for an application, and I found something that is a little counterintuitive. Let me start with a quick quiz: bob=User.find(1) alice=User.find(2) trip=Trip.new trip.driver=bob old_driver=trip.driver trip.driver=alice In this example, who is old_driver? If you guessed Alice, you''re right. Inside associations.rb, the mutator is defined as:
2006 Mar 28
1
Rails generates query with reserved word for field name
For some reason, rails is generating this SQL: SELECT FIRST 1 * FROM questions WHERE (parent_id IS NULL) ORDER BY position DESC 1. There is no column named position referenced in my code. 2. POSITION is a reserved word in SQL92. It is the name of a string function that returns the offset of one string within another. I believe that this is a bug in Rails. Either position should be
2005 Sep 26
1
Fwd: Rapid GUI Development with QtRuby
Just in case some of you missed it, Pragmatic Programmers just published their first of a series of short, PDF-only books. This one is on qtRuby. It would be great to have something like this for wxRuby. I don''t think wxRuby is quite ready to this (yet), but I thought I''d plant the idea. Curt ---------- Forwarded message ---------- From: Dave Thomas <dave@pragprog.com>
2006 Apr 01
12
Repost: Why is rails generating bad SQL?
It looks like I am missing something obvious. ActiveRecord is generating _really_ bad SQL for this configuration, and I can''t quite figure it out. I''ve instrumented ActiveRecord enough to localize the problem somewhat, and generally by this time I would have a good idea of what I was missing because it''s all in the source. It appears that something in
2006 Oct 14
1
[ADV] Making space: First Edition AWDwR Paper Books: $12.50
When we announced the second edition of Agile Web Development with Rails back in May, we pretty much killed the sales of the first edition paper book. So now, with the second edition just a few months away, we need to clear out some space. So, if you''d like to pick up a first edition paper book, they''re going (while stocks last) for $12.50 (plus shipping) from
2012 Aug 18
5
Quiz: How to get a "named column" from a data frame
Today, I was looking for an elegant (and efficient) way to get a named (atomic) vector by selecting one column of a data frame. Of course, the vector names must be the rownames of the data frame. Ok, here is the quiz, I know one quite "cute"/"slick" answer, but was wondering if there are obvious better ones, and also if this should not become more idiomatic (hence
2007 May 14
1
[ADV] New book: The Accessible Web
Gentle Web Development Folk: Just in time for RailsConf, I''m happy to announce Jeremy Sydik''s book, "The Accessible Web", is now available in beta. This is particularly sweet as Jeremy and I first discussed this book in the hallways of last year''s conference. This book is all about making your website accessible web sites-- sites that can easily be used
2006 Feb 03
33
[ADV] Rails Recipes Beta Book is now available
I''m delighted to announce that Chad Fowler''s new book, Rails Recipes, is now available as a Beta Book. This is a great title for folks who know Rails, and for folks who want to get the most out of Rails. It contains detailed recipes for doing real-world things with Rails, all illustrated with working code. Some examples are drawn from Rails 1.1, the rest from Rails 1.0.
2006 May 06
0
[ADV] Second Edition of Agile Web Development, with Rails
Oops, I guess wishful thinking got the best of me ;-) (I misread the part about the PDF upgrades) > Maybe the easiest solution is to buy the PDF ? You can then upgrade it for free when a new edition comes out. See > http://www.pragmaticprogrammer.com/starter_kit/faqs/pdf_update_faq.html > > I don''t think a lot of publishers do that, and no garage I have heard of
2005 Nov 09
1
Enterprise Integration with Ruby - Beta book
I saw this mentioned on Dave Thomas''s blog http://blogs.pragprog.com/cgi-bin/pragdave.cgi/Tech/Ruby/EIR.html and don''t remember having seen it announced on this mailing list. This new Beta Book is at http://pragmaticprogrammer.com/titles/fr_eir/index.html regards Justin