Displaying 20 results from an estimated 200 matches similar to: "ActiveRecord help needed"
2005 Mar 24
3
Caching computation in rails?
Caching computation in rails?
Simple example: factorial modulus a large number
input: integer x
output: factorial( x ) % 12345678901234567
I want it so that if it computes factorial of N once, it will not have
to compute for N again.
code:
class SiteController < ApplicationController
caches_action :factorial, :inv
def examine
@inv = @params[''inv'']
@outv =
2005 May 06
17
FYI: watch out for google's web accelerator - can empty your app of data
Hi All,
A co-worker passed this info on to me:
http://37signals.com/svn/archives2/google_web_accelerator_hey_not_so_fast_an_alert_for_web_app_designers.php
The Skinny: Google has a "Web Accelerator" that pre-caches pages by
following url''s. If you have any plain/simple URL''s that don''t take
paramaters (like what often happens in rails apps), it will try to
2005 Feb 22
1
Instiki @ O''Reilly ETech 2005
Hi all,
Sorry if I should be posting this elsewhere--I couldn''t find an
Instiki specific mailing list, but the Instiki site is down.
I wanted to mention that my friend Tim Lauer and I are going to be
doing a short "high order bit" talk at the O''Reilly Emerging
Technologies conference, describing a particular use of Instiki which
we came up with:
2005 Jan 17
5
how to override rails errors messages?
hi,
how can i override rails errors mesages (that are in english) to
display them in an other language?
thanks
hangon
2005 May 24
3
textilize/markdown/sanitize for messageboards, oh my!
Hullo, fellow Railsers!
(warning: this isn''t a 100% Rails specific question, but I guess it
very much applies to what a lot of us are currently doing.)
For a project that involves messageboard functionality I''m looking for
a good way of sanitizing user input, so the silly fools, err, my
wonderful users don''t mess things up too much. I''ve played around with
2005 May 03
8
SQLite3 + RAM drive => 3 times faster unit tests
One problem I sort of always had with the ActiveRecord''s tight coupling
to the SQL backend is how slow it makes the unit tests. OK, there are
some ways to make it faster at a price of extra complexity (reusing the
fixtures, doing a rollback in the end of the test, etc), but still - it
is much slower than what I would like a unit test to be.
Today I had a very simple idea (why, oh why
2012 Feb 14
6
cannot load such file -- openssl (again)
This problem has been discussed a number of times, but none of the given
solutions seems to work for me.
Problem:
Trying to generate the infrastructure for testing with Cucumber gives
the following error
~/.../OTK-register$ rails generate cucumber:install
/home/tpollak/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in
2005 Feb 19
5
Routing: How do I use what is left from an URL
Hi,
I have this scenario. I have the full path of a page stored in the
database (column ''path''). I want to be able to have very short urls for
retrieving the pages, so i have this route in my map
map.connect ''-/:title'', :controller => ''page'',
:action => ''view_by_title'', :title => nil
so when I go to
2005 Apr 17
14
Leaky Webrick (?) & image corruption
Hi guys,
After a few days of webrick seeming to use up a ton of ram (the longer it was running, the more ram); izayoi on #rubyonrails kindly suggested changing Dependencies.mechanism in development.rb to :require which appears to have fixed the prob - at the expense of having to restart webrick after making changes to .rb files. Is this a known issue, or is there an alternative solution?
2006 Apr 15
8
I need to send an email when something happens in my model...
but the model isn''t the right place to send mail from. That just
seems like pretty bad coupling, generating emails from within the
model. Or is that not a problem? On top of that, these emails need
to contain links back to my site...which is a bit of a pain in
ActionMailer, but I found directions on
http://wiki.rubyonrails.com/rails/pages/HowtoUseUrlHelpersWithActionMailer
however I
2006 Mar 19
20
Instiki 0.11.0 - ActiveRecord Forever
Dear all,
If you thought Instiki was a dead project, you were right. Since I''ve got a day job that doesn''t suck
(Official Ruby Zealot of ThoughtWorks Canada), my motivation to do open source greatly sufferred :)
But... but... but! Here is Instiki 0.11.0, and in this version Instiki is (finally!) moving to ActiveRecord backend
and (finally!) has the File Upload feature.
2005 Dec 19
2
rails based wiki: is instiki still being developed?
hello,
is the instiki project still being developed? it seems the web site is
down for a couple of weeks now, and almost no activity is going on on
the developer mailing list.
on a related note, are you aware of other actively developed rails-based wikis?
many thanks in advance.
2005 Aug 17
7
Need help with the rubyonrails wiki - instiki filters
I am trying to do a tutorial improvement on the wiki but I am having
some problems with the auto formatting. Using httdp.conf produces
http://httpd.conf when filtered. Using *.so produces .so and bold text
there after.
Is there any shorthand for the user for making text appear as it should
without the linking and re-writes? Or does the admin have to change the
filters in Instiki?
Tesla
2005 Oct 21
3
Need feedback on Instiki-AR beta
Hi all,
Following the recent release of Instiki-AR beta, I haven''t had a lot of bug reports or other feedback.
This could mean one of the two things. Either nobody is using it, or some people are, and have no problems at all.
One thing for sure is that it''s certainly getting downloaded (20 times a day, as it were)!
I''d like to know which way is it.
So, if you are
2005 Dec 22
11
rforum engine
Here''s a question for those well-versed in rforum or engines -- or
both, ideally :) I''ve spent some time today turning RForum into an
engine, using rails 1.0, engines trunk, and rforum 0.1 (as rforum
trunk didn''t appear to work out of the box).
My rforum engine works, but only when I do two things that I found by
trial and error:
1) All rforum controllers subclass
2006 Jan 18
23
RForum Software Sucks?
(Donning flameproof suit)
Am I the only person who thinks that the Ruby forum software sucks?
E.g. search only for a word. Can''t search for new posts, can''t search
by date, topic list doesn''t indicate when I''ve already read a post,
there can be several independent replies to a topic, just to name a few.
There are lots (admittedly not Ruby based) of good
2006 Jun 26
13
Why no forum app in rails yet?
Hi Guys,
So creating a forums application seems like something that rails can
handle easily and well, and whatever implementation that came to
fruition would be head and shoulders above existing products like
vBulliten and phpBB.
Even the existing rails forums are using php-based forum products! An
insult if you ask me.
So my question -- is there any current development of a rails-based
2006 Jan 10
13
InstantRails 1.0 problems...
Hi,
I have installed InstantRails 1.0 Final on Win XP (Home SP2) and Win 2K 2000.
I was able to get the two apps (cookbook, typo) work fine with Webrick but not with SCGI server. I tried changing the SCGI settings through the InstallRails.exe console so that the Runtime Mode: would be "development" instead of "production" and SCGI port: to 5000 instead of 9998.
2005 Jul 29
10
Rails Wiki down
Howdy -
Someone''s probably already reported this, but anyhow, going here:
http://wiki.rubyonrails.com/rails/show/RailsOnFedora
results in:
====================
> Bad Gateway
> The proxy server received an invalid response from an upstream server.
>
====================
Yours,
Tom
2006 Feb 21
6
+ camping/session
Camping now comes with a sessioning class, checked in tonight.
To get sessions working for your application:
1. require ''camping/session''
2. include Camping::Session in your application''s toplevel module.
3. In your application''s create method, add a call to
Camping::Models::Schema.create_schema
4. Throughout your application, use the @state