similar to: dispatch.cgi -> Anonymous modules have no name

Displaying 20 results from an estimated 1000 matches similar to: "dispatch.cgi -> Anonymous modules have no name"

2006 Nov 04
2
how to use LabellingFormBuilder
Railsers: As usual for a product written very rapidly, most of its documentation assumes some other documentation told you something critical. For example, the file form_helper.rb tempts me with this documentation: # <% form_for :person, @person, :url => { :action => "update" }, :builder => LabellingFormBuilder do |f| %> That''s beautiful. Now what do I
2007 Feb 16
13
negate the regexp in validates_format_of
Railsters: ActiveRecord''s validation system puts other database systems to shame. However, the newbies might not know how to write a regexp that excludes a match, instead of tests for it. Understand - I''m just asking this question to help them. I have been using Regexps since ''grep'' on Xenix! But the newbies here might not know how to do this:
2006 Oct 30
1
domain language?
RSpeckers: I went with RSpec instead of Systir because I downloaded and installed the former first. (I know that''s not exactly a ringing endorsement! ;-) I want to compete with FIT and Fitnesse, like this: http://www.zeroplayer.com/cgi-bin/wiki?TestFlea#tropism (Click on a Green Bar to distend one test case.) I want a domain-specific language in the parchment-colored area on the
2006 Aug 15
5
Set up a default route
Phlip wrote: > Can I fix it by adding a view called ''inventories''? That worked, because I have a sufficiently late version of MySQL. Next question. What does "Set up a default route" mean? When I read... http://wiki.rubyonrails.com/rails/pages/Routes ...it reminds me of the Apache documentation for mod_rewrite. I hope someone appreciates the candor of my
2006 Nov 05
1
Non-Fatal Anonymous Module Error
I am receiving the following non-fatal error from Rails for a particular action: Error calling Dispatcher.dispatch #<ArgumentError: Anonymous modules have no name to be referenced by> ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:313:in `to_constant_name'' ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:270:in
2007 Apr 04
2
unit tests?
Ezra et al: I have this problem: http://rubyforge.org/pipermail/backgroundrb-devel/2006-December/000578.html Any progress on it? Or are unit tests simply impossible for now? -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!
2006 Nov 21
1
RXML vs form_tag etc
Railsers: The documentation for *.rhtml views invariably mentions *.rxml views. They sound like a Good Thing, because some of my generating code mixes Ruby and HTML so densely that the code is full of %><% markers. Dropping down to only one language would be a blessing. However, this documentation invariably avoids mentioning one tiny, insignificant detail: How do you inject raw HTML
2007 Sep 10
3
Can't reach a controller :(
When I try to see a controller I get a 404 error, this is what WEBrick says What could it be? Thanks for the help ;) => Booting WEBrick... => Rails application started on http://0.0.0.0:3000 => Ctrl-C to shutdown server; call with --help for options [2007-09-10 13:30:26] INFO WEBrick 1.3.1 [2007-09-10 13:30:26] INFO ruby 1.8.6 (2007-06-07) [i486-linux] [2007-09-10 13:30:26] INFO
2006 Nov 17
1
SQLite3 put a parse error in my schema.rb for timestamps
Railsers: I switched from MySQL to Sqlite3 for Test-Driven Development. It meant the difference between (Long term, I want to understand the db:migrate system well enough that I can run a long test, occassionally, that migrates everything to MySQL and retests it there. That will prevent nasty surprises at deployment time. But that''s not the current question!) Because I don''t
2007 Feb 14
5
FormTestHelper should change hidden fields
Railsoids: FormTestHelper rules. It tests your response.body form at the same time as it triggers your action, with all the parameters in that form. This obviously improves quality. But it took issue with this: submit_form ''validate_stuff'' do |form| form[''IBhidden''] = ''validate'' end The field IBhidden is a hidden field. To be
2006 Aug 15
6
try creating a table for your model
Railers: Greetings from the low end of the learning curve. I have installed all the prerequisites on Win32, including a lite MySQL database with a table in it called Inventory. Then I run this command line... ruby script/generate ajax_scaffold Inventory ...and I get this error message: error Before updating scaffolding from new DB schema, try creating a table for your model
2006 Nov 28
11
New Rails Site: Wordie
My latest stupid web trick, built, with love, in Rails: http://wordie.org Make lists of words. See who else likes the same words. Basically, it''s a dating site. Built on thanksgiving while half-watching football and launched yesterday. In other words, half-baked, but I thought some of you might find it mildly amusing. John ____________________________ John McGrath Squirl: a site for
2007 Dec 11
3
Fresh rspec on rails install blows up
Hi there, I installed the rspec on rails plugin for a new project today and guess what -- it blows up! All by other rspec on rails projects are working fine. I updated all gems & still no joy. Any ideas how I can troubleshoot this one ? Here''s my setup: - ruby 1.8.4 (2005-12-24) [powerpc-darwin8.7.0] - Rails 1.2.5 Installed with svn: ruby script/plugin install
2006 Dec 22
2
Relating Namespaced Models
I am dealing with a large project. I use a lot of STI and therfore have a lot of models. I''d like to use namespaces to help organize my models but am having trouble getting started. I have a base model Term::Base located in /app/models/term/base.rb: class Term::Base < ActiveRecord::Base set_table_name "terms" end I have a non-namespaced client model: class Client <
2006 Dec 05
6
Best Book
Hi there, What is the best book of Rails??? Or the top sellers, thanks.. -- Felipe Amaral Vento Livre Internet --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from
2006 Dec 27
13
Where did UJS go? UJS vs. RJS
I have not been able to access the UJS site, http://www.ujs4rails.com/ for two days. Does that mean there are problems or that it has been incorporated into Rails core? In general, what do you think of using UJS instead of RJS? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google
2007 Feb 03
7
Interesting radio button behavior with "onclick"
Hello: I have radio buttons like this: <% fields_for :goalhist do |g| %> <table> <tr> <td align=left><%= radio_button_tag (''duedate'', 0, checked = false, options = {:onclick => ""}) %> &nbsp;&nbsp;Start now </td> </tr> <tr id="detailed" style="display: none"><td colspan=2>
2006 Nov 28
2
collection_select and selected_value
Hi, I am using collection_select to build a drop down list. I would like to have the current value selected. How can I do that? My current code is straight from the example in Pragmatic Programmers book [2nd ed, p480] copying here for reference. <%= @users = User.find(:all, :order => "name" ) form.collection_select(:name, @users, :id, :name) %> I went through the api docs
2006 Nov 30
41
TDD killing my joy of Rails
I''ve been working through the book ''Beginning Ruby on Rails E-Commerce'' which is very heavy on Test Driven Development. As in, you have to write tests for scaffolding methods and validations and crap like that. And then they fail. And you KNOW its the test not the method. So you spend 2x the time writing a test that has to be adapted when requirements change. You
2007 Apr 04
0
what version of BackgrounDRb do I have?
How to detect that from the files? -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!