Displaying 20 results from an estimated 44 matches for "phlip2005".
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!!
2009 Feb 01
8
undefined method `inherit'' for Merb::Test::ExampleGroup
RSpeckers:
I''m trying to install this into a Merb-generated RSpec rig:
http://code.jeremyevans.net/doc/fixture_dependencies/
It requires inserting their test case into RSpec. This is the documented way to
do it:
describe ''Post'' do
inherit FixtureDependencies::SequelTestCase
And that leads to the syntax error in the subject line. (No stack trace is
available
2008 Feb 18
5
uh... fixtures?
RSpec-ers:
I''m aware this is quite the FAQ. I have probably asked it myself, but I just
can''t Google up anything but others asking it.
I grabbed the source to Beast, to use as a Rails project uninfluenced by me, or
RSpec. Then I installed the CURRENT version of RSpec and rspec_on_rails, and set
up a model spec on Post.
Here''s the spec_helper.rb lines:
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 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
2008 Jun 21
1
Howto uninstall compiz from Kubuntu
Compiz:
A colleague tempted me with compiz eye candy, and I tried it.
Sorry, but many features were too far outside my usability comfort zone:
- lazy mouse (in /this/ day and age???)
- The Run window did not reliably pop up
- minimize-all-windows turned everything black
Some of those items were configurable. Some required multiple, diverse
reconfigurations to fix. I couldn't fix the
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 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
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
2009 Apr 08
2
ADVANCED Rails Mailing List?
Is there an advanced rails mailing list? I''ve noticed that much of the
issues on this list are for beginner to intermediate issues, and
posters asking more advanced issues are rarely answered. I still find
this list to be very useful, but I would love to find a community of
more advanced RoR folks to discuss expert level implementations.
-Kevin
2007 Sep 22
2
Dynamic view - is it possible at all?
I have the following question. It sounds weird, but still.
We all have app/views/say.rhtml or any other template for the view. It
can include of course instructions in <% %>
So the question is next -- is it possible to use .rhtml as a view
which we just uploaded?
I.e. user uploads his own .rhtml, controller saves it in the database,
and shows the view using it.
Is it possible at all?
2009 Apr 03
2
Recovering in Ruby-libxml parser from invalid UTF8 code
I am parsing XML streams with ruby-libxml using the XML::Reader class.
Several have invalid UTF-8 characters. I need a tutorial or at least some
hints on how to recover and continue the parsing.
TIA,
Jeffrey
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this
2007 Sep 21
1
Do fixture_scenarios and RSpec peacibly coexist?
Railsters:
I just installed fixture_scenarios ...
http://fixture-scenarios.googlecode.com/svn/trunk/fixture_scenarios
...into a project with some RSpec specifications. They all went kablooey.
I didn''t even create a scenario; the system just started calling its version
of fixtures(). The normal tests pass and the RSpec ones unanimously emit:
TypeError in ''Context (verbose
2009 Jul 06
8
how to make ZenTest autotest run whenever my tests change
Railsters:
Despite Rails being the only Web platform designed for TDD, a lot of its test
infrastructure is still "cargo cult" - imitating other test rigs instead of
understanding their principles.
Most importantly, tests should run instantly. There''s no excuse for breaking
this rule, and if you invent a platform that can''t obey it then you are doing
something
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
2008 Jun 15
5
Ruby on Rails 2.1 Tutorial
Hi,
I have put all the basic things in place and you will find it a working
tutorial for Ruby on Rails 2.1.
http://www.tutorialspoint.com/ruby-on-rails-2.1/
I have covered Model, Controller and Views in detail and you will find a
nice example on scaffolding.
If you like this tutorial then please share it with others....Oh
yes...if you have any feedback then please definitely send it to me.
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
2008 Jun 02
4
Beginning Questions
Dear all,
I am new to rails and I am considering it for a project.
What I would like to know (and I couldn''t straightforwardly find an
answer to) is:
- is it possible to develop commercial web applications in which you
can pack a whole web app and send it to a client without disclosing
the source?
- is there any library of existing components already implemented?
- which solutions are
2009 Mar 11
6
Monkey Patching a Plugin
I am using a plugin that adds a method to ActiveRecord::Base. The
added method is called self.create_or_update. I need to monkey patch
this method. I tried in lib/ config/initializers and in
environment.rb, but the one in the plugin is always the one that is
run.
Where do I put my version of the method so that it overrides that of
the plugin? I only use this method when running a rake task, so
2008 Sep 06
6
Active record question
I''m not quite sure how to get at this data using Actrive record.. I''m trying to get all the appointments made for a particular project. I''m using four models, Projects, Tasks, Resources and Appointments.
The SQL gets me what I''m looking for but how do I do it using Active Record?
Select a.* from appointments a
join resources r on r.id = a.resource_id
join