Displaying 20 results from an estimated 1000 matches similar to: "better way to include helpers into application controller/test_helper?"
2006 Jul 06
1
migrations work from script/console, but not command line
Having a weird issue where I can migration to version 1, but then go
no further, and cannot go back to 0 -- but only from the command line.
If I open up script/console I can do migrations just fine - down to 0
or up to 2, via ActiveRecord::Migrator. So I know the migrations must
be valid, and I can verify that tables are created or destroyed in the
database.
Does anyone have any idea why this
2006 Mar 23
2
Ruby and RoR Book Roundup
Hello,
I''m a big bookworm, so I decided to round up all the upcoming Ruby
books in the market in one big blog post. At my count, there are
_sixteen_ books to be released (in print) for the upcoming year, with
some available in pdf form right now. Here''s the list:
http://www.robsanheim.com/2006/03/23/ruby-and-ruby-on-rails-book-roundup/
Hope its helpful for fellow book nerds
2006 Feb 07
6
Switchtower not working due to openssl not found
I''m struggling to get switchtower working, and from other posts about
it I know it has something to do with ruby binding to open ssl. I''m
just not sure what I should recompile/reinstall to get things to work.
running: "rake remote_exec ACTION=setup" gives me --->
...executing "mkdir -p -m 775 /usr/apps/hello-rails/releases
/usr/apps/hello-rails/shared/system
2006 Jun 01
1
adding color to autotest output
I was wondering if anyone had a quick an easy way to add color to the
autotest output. I just want a nice green splash somewhere on
success, and red on failure - I miss the Eclipse xUnit plugin''s easy
feedback where I didn''t have to read log output. =)
- rob
--
http://www.robsanheim.com
http://www.seekingalpha.com
http://www.ajaxian.com
2006 Jul 31
0
problems testing helpers - link_to and url_for don''t work...
So I''ve used the helper test plugin, and also tried some things from
Rails Recipes, and basically neither seems to work for cases where a
helper does anything related to link_to/url_for, and this includes
calling named_routes. This is obviously an issue, as a common use for
helpers is to refactoring something like this:
<%= link_to "text that changes slightly", :id => id
2006 Nov 04
0
Book Review: Ruby for Rails
Hi all
I''ve posted a review of David Black''s book _Ruby for Rails_ on my blog:
http://www.robsanheim.com/2006/10/04/ruby-for-rails-by-david-a-black-book-review/
The quick summary: "A fantastic guide to Ruby for programmers of all
skill levels - up there with the PickAxe and may even surpasses it".
Thought some might find it useful.
- Rob
--
2006 Jan 31
1
question on gem update rails effect on fcgi/mysql bindings
Would upgrading rails and all dependancies break the installation of
the fcgi/mysql bindings? I know I had all this stuff working a month
ago or so, but since then I''ve updated a few times...
- Rob
--
http://www.robsanheim.com/ - blog on java, rails, tdd, agility, and
life in general
http://www.ajaxian.com/ - the net''s premier ajax blog
2006 Jun 26
2
RailsConf DVD ?
Hi All,
I saw spurious mentions on a few blogs of a DVD being made available of
RailsConf presentations. However none seemed to have a who/what/when/where
attached to them, thus might just be pure speculation. Anyone know of an
official source/effort being made for a DVD?
Would be well keen for copy if one is to be made available....
Cheers
Rowan
---
http://raili.st/
-------------- next part
2006 May 22
0
Bug in text_helper.rb
I think there''s a logical mistake in ActionViews text_helper.rb. The
TextHelper modul defines the methods textilize and
textilize_without_paragraph in a begin rescue block that calls
require_library_or_gem "redcloth".
The problem is, that this call will always fail and the methods will
never be defined when you install RedCloth as a plugin under
vendor/plugins.
That is
2006 Jul 24
4
List etiquette question
I''ve written a little ruby/rails hangman-ish app to keep my wife occupied at
work that I think list members might also find interesting. I''m new to this
list so I wanted to see if it would be considered bad form to post the link
before I did. There aren''t any ads so I''m not getting anything out of more
visitors, but I still didn''t want to take the
2006 Jul 13
2
Intel Mac, Rails, MYSQL - access denied
Hi,
Nuby on Rails here trying to bring up an existing app on a new
installation.
The whole ruby/rails/mysql/lighty installation was done per the much
touted "hivelogic article" that runs through all the steps.
I am running into a permission error when I try to do a rake migrate to
set up a session database needed by this existing app. Extracted from
the trace...
** Execute
2006 Aug 10
3
Want to use a view helper (TextHelper) in a model class
I have a model that deals with HTML and I want to use the
text_helper.sanitize method to strip the HTML of Javascript.
However, it doesn''t appear that I can get easy access to the text_helper
methods from within a model.
Anyone have any suggestions for how to do this?
In general, I think that there are some ActionView helpers which are
generic enough to want to use in a model class.
2007 Apr 10
0
mongrel and log_level
Hi all
I''ve noticed that the mongrel log output when run interactively (via
script/server) doesn''t respect environment specific log levels,
because the logger is initialized way before the
''development_cached.rb'' file is ever loaded (for example).
I''m guessing this is more a Rails issue then a Mongrel issue, so maybe
I should open or search for a
2006 Jun 29
9
Handling multiple developers making migrations and using svn
Hey all,
I''ve run into an interesting scenario that I think some of you might have
some suggestions on. I am currently working on a RoR project and we are
making full use of the migrations. We are also using a subversion repository
for our source control. Now, the problem....
We are both making migrations and checking them into SVN. So, if in our
checkout we have migrations up to 10 and
2007 Jan 07
3
slow tests on an established project...
Hi all
Hope this isn''t too far off-topic on this list, as I think it would
largely go ignored on the main rails list.
I''m looking for the most pragmatic way to speed up our test suite.
This is on an established project, and lets just say that we used way
too many fixtures when we started =). For example:
Finished in 128.870144 seconds.
===============
392 tests, 2106
2006 Jun 26
5
using application_helper.rb
I have a simple Yes/No selection list that I am using in a number of
places. Thinking that I could DRY things out a bit, I added it to
application_helper.rb ...
YES_NO = [
[ "Yes", true ],
[ "No", false ]
].freeze
So I figured I would use it there instead of in each model.rb where
needed.
anyway, in webrick screen, I am continually seeing this...
2006 Jun 02
5
Firefox extension for ajax debugging
or similar...
Is there any extension for firefox so that I can view the source code of
ajax returned content?
Thanks everybody.
2007 Jan 02
4
allow stubbing of previously defined methods such as "id"
On my current project I needed to create a stub that responded
correctly to the id message. Here''s the change I put into my copy of
head.
Index: lib/mocha/mock_methods.rb
===================================================================
--- lib/mocha/mock_methods.rb (revision 1114)
+++ lib/mocha/mock_methods.rb (working copy)
@@ -68,6 +68,7 @@
method_names =
2006 Feb 25
0
neverending i2/lighttpd problems
So after recompiling ruby a few times to get ssl and readline working,
fighting with lighty for awhile, and learning a bit more about linux
in the process, I think I''m really close to getting i2 up and running.
However, when I try to access my wiki, I get either a blank page or
an error 500 and the stack trace below gets sent to the log. If I
can''t get this working soon
2006 Sep 06
13
Ruby/Rails facts?
I found these facts while in #ruby-lang irc?
<duracell8> 1. Limited Pool of developers who know Ruby. Get developers
to nominate if Ruby will be their secondary language.
<duracell8> 2. The serving of Ruby Apps from Apache using FastCGI is
broken the world over. It causes periodic process and database connection
blowouts. Move to a Mongrel Pack.
<duracell8> 3. Limited