similar to: Tags to ruby interface: What I am missing? (repost)

Displaying 20 results from an estimated 1100 matches similar to: "Tags to ruby interface: What I am missing? (repost)"

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 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
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 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 Jul 14
3
Rails newbie: How does the submit_tag work?
I would appreciate any and all input. The Agile book is not useful in this context. :o( As near as I can tell, it doesn''t work at all. I would expect that clicking on the [Next Question] button in the browser would fire the next_question method in the current controller. Instead, it (apparently) does nothing. The tag in question <%= submit_tag ''Next
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,
2008 May 09
5
dynamic models
Hi In my app , a user can create a set of question then a table is dynamily created , in the database,to store the answers of the questions. the name of the table is answers_x (x is the id of the questionniare). Is it possible to dynamicly create a model, to handle the answer_x tables ?? I can''t manually create a model then restart the server.
2007 Sep 02
17
A Proposal To Magically Remove ''params''
I have a magical proposal for the anti-magic web framework. Controller methods do not use arguments and yet expect arguments. This is handled through this params hash because we don''t know in advance what parameters a client could pass to Merb. But in almost every instance, it is too much to know all the query parameters - one doesn''t care if the user threw in an extraneous
2006 Mar 12
2
Ruby syntax question, I think ...
I am successfully navigating between controllers. However, I am unable to construct a new child (question) record. What does "undefined method `stringify_keys!'' really mean"? I think I am missing a subtlety of Ruby syntax here, since the question_controller is actually trying to call the Question constructor. Can someone point out what I am missing please? Thanks in
2006 Apr 01
0
Okay, what gives? find_by_id is failing.
This has the look of a "just don''t quite get it yet" problem. I am using the ActiveRecord.find_by_id method to identify the parent object (Quiz) to tie to the child object (Question) at create time. Here is the stdout log: 127.0.0.1 - - [31/Mar/2006:22:43:22 CST] "GET /question/new? parent_quiz=ff2d7022-be0a-11da-9f01-00400506faf5 HTTP/1.1" 200 806
2006 Mar 15
0
[ADV] Best of Ruby Quiz available
Railsriders: Quizmeister James Edward Gray II selected the best 25 Ruby Quizzes from last year, then carefully collected answers and annotated them. The result is "The Best of Ruby Quiz", a wonderful book which will teach any Ruby programmer new techniques and approaches to coding. If you want to hone your programming skills, stick to the front part of the book and enjoy
2007 Jan 22
4
Postamble vs campingrc
Hi, Should I be able to use the Webrick postamble instead of using .campingrc, to tell Camping I want to use mysql? It doesn''t seem to be working for me. It does work however, when I''m using FastCGI (establish_connection :adapter => ''mysql''). James
2006 Mar 17
5
Radio Button Validation
I''m writing a quiz application and I need to validate the radio button reponses. I do not have the questions in a database, I just have forms which contain "question1" and then I strip out the "question" portion and just insert the number as the question''s id. So now I''m faced with the dilemma of making sure the radio buttons are pressed. Radio
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
2008 Oct 17
3
Guitar Pro in Wine?
My uncle recently bought a new computer and he wants me to help him install Guitar Pro. The thing is, he doesn't have Windows, and I'm thinking of installing Ubuntu with wine on the comp. Quiz time! Can you use wine, with GP, and if you can, deos it perform poorly in any ways?
2006 Jun 03
12
How to get dynamically created inputs from html form back to rails app
Thank you in advance. Although I have many years of experience in general, including cross- platform processing, I am not an HTML/Javascript programmer. As a result, I do not have certain specific baseline skills and/or knowledge that are presumed in the Rails and Ajax documentation. I am experienced with DOM manipulations, so the bare mechanics of manipulating the browser GUI via Javascript
2006 May 14
3
need help for simple form tag (noob)
when the user click on "Search" I would like it to point to http://curentpage/?filter=searchtext (the filtering code is already written) it would look like this: <%= start_form_tag(url_for_options = {<something>}) %> <%=text_field (<my_filter>) %> <%= submit_tag(value = "Search")%> any idea how to do this? thanx in advance
2016 Mar 08
2
FileCheck: combining -DAG and -NOT
If you look at the FileCheck documentation page: http://llvm.org/docs/CommandGuide/FileCheck.html you'll find this intriguing example of combining -DAG with -NOT (slightly amended to avoid some potential confusion): ; CHECK-DAG: BEFORE ; CHECK-NOT: BETWEEN ; CHECK-DAG: AFTER The page says this will reject the sequence "AFTER BEFORE", which is correct. It's intuitively obvious
2006 May 10
3
NumbersToWords
= numbersToWords - convert your integers and floats to english or japaneese words,or translate it into american currency - This plugin was created from a solution to the ruby quiz (english numbers) by Matthew D Moss. I modified the code to work as a rails plugin and added the to_dollars method. - the to_dollars method will work with integers and floats - the to_english and to_japaneese methods