Displaying 20 results from an estimated 22 matches for "neurogrid".
2006 Feb 06
9
tests fine, but fail under rake
Hi there,
So I have an odd error at the moment that only occurs when I run tests
via rake. It''s happening with two tests now. Under a simple ruby run,
the tests are fine, e.g.:
D:\User\Code\ruby\prometheus>ruby
test\functional\story_comments_controller_test
.rb
Loaded suite test/functional/story_comments_controller_test
Started
.........
Finished in 2.37 seconds.
9 tests, 65
2006 Jul 28
4
[mod_fcgid] 503 server temporarily unavailable
Hi There,
Every now and then, and recently more and more we get a "503 server
temporarily unavailable" error from our rails app.
We are running Rails 1.0 with mod_fcgid in Apache 2.0.54 on Debian
The thing is I don''t think we have such a heavy load on the server, and
I haven''t seen this error occur at all outside the rails app. In fact I
don''t think I ever
2006 Apr 12
2
RedCloth versus BlueCloth efficiency
Has anyone profiled the performance of RedCloth versus BlueCloth?
I''m starting to realise that RedCloth is a more mature ruby project,
although Markdown the syntax maybe more widespread than Textilize.
Apart from the syntax, does anyone feel they have a preference, in terms
of performance or number of outstanding bugs?
Many thanks in advance.
CHEERS> SAM
2006 Jan 23
0
continuous integration - how do you do it?
...::::::::::::
run_functional_tests.sh
::::::::::::::
#!/bin/bash
cd /var/www/ruby/srjoseph/prometheus
rake test_functional &> /tmp/tmpfile_dis_dev_func
more /tmp/tmpfile_dis_dev_func | mail -s "$( grep ''[:digit:]* tests,
[:digit:]*'' /tmp/tmpfile_dis_dev_func)" sam@neurogrid.com
rm /tmp/tmpfile_dis_dev_func
::::::::::::::
run_unit_tests.sh
::::::::::::::
#!/bin/bash
cd /var/www/ruby/srjoseph/prometheus
rake test_units &> /tmp/tmpfile_dis_dev_unit
more /tmp/tmpfile_dis_dev_unit | mail -s "$( grep ''[:digit:]* tests,
[:digit:]*'' /tmp/tmpfil...
2006 Aug 15
0
BlueCloth throws exceptions! Be careful! (was: auto_link fails to handle tilda''s (~) and markdown fails to handle acute accent (`))
On 12/15/05, Sam Joseph <sam@neurogrid.com> wrote:
> markdown couldn''t handle an acute accent (`) e.g.
>
> Hawai`i
>
> It seems that acute accents (or backticks) in Markdown signify code
> segments, and it seems there''s an open ticket for this:
>
> http://www.deveiate.org/projects/BlueCloth/t...
2005 Sep 13
5
acts_as_taggable 1.0.4 now gemified!
Hi Folks,
The acts_as_taggable mixin is now available as a shiny gem.
More details here:
http://dema.ruby.com.br/articles/2005/09/13/acts-as-taggable-gemified
This release features some cool additions as well.
Cheers
Dema
--
http://dema.ruby.com.br - Rails from a .NET perspective
2006 May 16
0
strange partial error
I''m getting this weird partial problem.
I''m calling the partial like so:
<%= render :partial => partial,
:locals => {:message => message,
:display => display,
:indent => indent,
:button_type => button,
:terms => params[:search_terms]} %>
The object in message can be printed out first, and then within the
partial I can access it, and it returns false
2006 May 31
1
runners and development/production mode
I''m using a runner script to try and send batch email update, however I
get the impression that the runner is not operating in production mode
and as a result it is falling foul of the system I have in place to
block emails goinc out in development in testing modes.
Is there some way for me to force a runner to operate in a particular
mode, or even to check the mode it is operating in?
2006 Apr 04
0
rails url to object reference
Hi all
Is there a quick utility to go from a url to an object reference, e.g.
http://rails/users/show/1 --> @user, but not through a browser ...?
I don''t want to access the object to look at it - I want the url string
itself to be interpreted - like for a wiki name in a wiki page
What would be best would be a function like:
return_object_ref(urlstring)
where urlstring =
2006 Apr 04
1
sessions failing on debian apache2 fast_cgi
Hi All,
So I just pushed our rails app to our production server, but I''ve
encountered a number of problems.
Firstly the fast_cgi processes seem to be eating up a hell of a lot of
memory, at times max out our 1gig of RAM. I''ve switched back to cgi for
the moment, but independently of that sessions seem to be failing
intermitently.
The session will hold itself stable for a
2006 Apr 21
0
collection_select has_and_belongs_to_many update_attributes
I know there have been threads on this before but I was thinking
shouldn''t multiple collection_select automatically update habtm
relations when you update_attributes?
In order to get multiple collection_select to work I use:
collection_select(:user, :group_ids, Group.find(:all), :id,
:name,{},{:multiple=>'''',:name=>''group[id][]''})
In fact if I
2006 Feb 01
1
detecting whether a request comes from render_component
Hi All,
Anyone know if there is a way to detect whether a request came from a
render_component call? There isn''t anything obvious from looking at the
source, but it would be useful as I have set up a logging filter in my
application.rb, and I''d prefer to exclude all component renders, since
they just add extra lines to my log (I guess I could exclude identical
rows at the db
2006 Jan 30
0
who are hieraki authors for manuals.rubyonrails.org
Hi all,
Does anybody know anybody who is a hieraki author for
manuals.rubyonrails.org?
I''ve been waiting for my account to be approved for several months now.
I''d really like to contribute to the online manuals, which seem to be
lacking in various places, e.g. functional testing for action mailers etc.
Or is there some special mechanism for becoming an author that I am not
2006 Jan 09
1
testing UrlHelper in ActionMailer
Hi All,
So I found a helpful web page that explained how I could use things like
url_for in my mails:
http://wiki.rubyonrails.com/rails/pages/HowtoUseUrlHelpersWithActionMailer
However, I can''t test them properly. The problem is that when I create a
controller in my unit tests and pass it into the ActionMailer, it''s not
a real controller, set up as a controller is when it is
2006 Jan 02
0
problem with ruby gem activate when trying to run actionpack tests
Hi There,
so I worked out what I should be doing to try and contribute code to
rails (I''m currently working on patches for collection_select and
auto_link).
I''m following the instructions here:
http://dev.rubyonrails.org/
and have checked out actionpack. Trying to run the actionpack tests I
get this error:
D:\User\Code\ruby\actionpack\test>ruby controller/base_test.rb
2006 Feb 07
0
Re: odd http header corruption
Hi,
So more information on the header corruption.
I tried adding a slice! instruction to remove the offending part of the
http headers. Rails ActionController::CgiResponse normally uses the
following:
output.write(@cgi.header(@headers))
which I replaced with:
headers = @cgi.header(@headers)
headers.slice!(/#<#<(C|c)lass: 0x[\w\d]*>:0x[\w\d]*>/)
output.write(headers)
testing that
2006 Aug 03
1
Strange file upload error
Hi There,
So we are having this really strange file upload error. We can upload a
file to rails, store it in the DB, and download it again all fine.
We also have things set up to allow us to edit the file, and upload a
new one to replace the existing file. This functionality works just fine
for text files, but fails for microsoft word and PDF files.
It''s really strange; we''re
2006 Jan 05
4
testing file uploads
Hi all,
I was wondering about the class used when rails receives file uploads.
Sometimes it appears to be a File, and other times it is a StringIO.
Also it has methods such as original_filename that don''t appear to
belong to either of these classes. I ask because I''m trying to work out
how to test my fil upload related models and controllers.
Is there some standardised way of
2006 Apr 07
2
weird error with rake create_sessions_table
Hi all,
Despite switching to mod_fcgid (which has improved performance),
sessions are still expiring sporadically. I thought I might try
switching to storing them in the db, but I get the following error when
I try to run the rake create_sessions_table command
D:\User\Code\ruby\prometheus>rake create_sessions_table
(in D:/User/Code/ruby/prometheus)
rake aborted!
undefined local variable or
2006 Jan 10
4
Problem creating MockController
Hi there,
I''m trying to create a mock controller to test the use of UrlHelper in
ActionMailer. I''m trying this:
require
''d:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller''
# Re-raise errors caught by the controller.
#class DiscussionsController; def rescue_action(e) raise e end; end
class MockController < ActionController::Base
def