Displaying 20 results from an estimated 45 matches for "snowdevil".
2006 Apr 04
6
Console for Testing Routes?
Hi,
when the "Agile Web Development" book talks about routes, there are what
looks like console transcripts like the following:
URL> store
@params = {:controller => ''store'', :action = ''index''}
Is there something like a console for testing routes (where you could
put in a url and see how rails would route it)??
Ingo
--
Posted via
2005 Mar 17
4
Specifying Which Environment I Am In
After I have uploaded my app where do I specify that my app should now
use production environment settings and not development?
Can that be done dynamically so that I don''t have to reset a value once
I upload website?
Thanks for your help!
2005 Feb 06
5
Rails on FreeBSD or OSX
Hello everyone-
I was just reading the article on Rails at O''Reilly and one of those
little light bulbs over my head went off - what a GREAT tool.
I tried to install both Ruby on my Mac PowerBook without much luck and
then tried to install Ruby and Rails on a FreeBSD server I have. I am
running into some odd errors - so, my question is - can you point me to
some tech resources
2005 Mar 10
4
:anchor won''t work in 0.10.1
Anyone else having problems with :anchor? Until 0.10.0 it was working
fine but with this recent update it''s just not doing anything.
Thanks,
Pedro
2005 Mar 01
2
@request cycle variables
I posted something about this yesterday, and got some good responses but
it seems that the variable @request[''controller''] isn''t being passed in
to the page or isn''t being read. Has the naming convention for these
variables changed. it worked great in all rails versions up to 0.9.5
with fcgi, but is not working in rails 0.10.0 with fcgi. I am currently
just
2005 Apr 24
4
Typo 2.0
...ho sent patches and
suggestions for this release. Especially I want to thank Patrick Lenz
and Seth Hall for the tireless bug fixing and improvement of the code
health.
Typo is now 1435 lines of very aesthetic code and is backed up by 1120
lines of tests putting it at a 0:8 ratio.
--
http://www.snowdevil.ca - Snowboards that don''t suck
http://www.hieraki.org - Open source book authoring
http://blog.leetsoft.com - Technical weblog
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/ma...
2005 Mar 09
10
Confused about extending the login generator ''user''
I''ve been using the login generator ''out of the box'' for simple
authentication, and its been working fine.
Now I want to extend it by simply adding ''type_id'' field which links to
my ''user_types'' table, but I''m hitting:
#<ActionController::SessionRestoreError: Session contained objects where
the class definition
2005 Mar 06
9
How to do SQL queries outside of AR
Hi Everyone,
I''m trying to figure out how to do SQL queries in the Controller. I know
this is not recommended, but I can''t use ActiveRecord because I am
dealing with thousands of a different tables, one for each user, and
I don''t think AR can be made to handle that situation.
You can assign the table name; but that''s a class variable so any particular
2005 Mar 05
3
login generator problem
I am trying to use the login generator, but I keep
getting the following error when I run "generate login
Account":
/usr/lib/ruby/gems/1.8/gems/rails-0.10.0/lib/rails_generator/base.rb:84:in
`manifest'': No manifest for ''login'' generator.
(NotImplementedError)
from (eval):3:in `__send__''
from (eval):3:in `manifest''
from
2005 May 17
8
acts_as_tree elegant tree printing
Hi,
I''m working with acts_as_tree to print an unordered list of items:
Root
-- Child
---- Child
I''ve got this working, however I''d like to know if there is a more
elegant fashion that I''m unaware of:
#Takes a parent category and recursivley returns all children
def find_all_subcategories(category)
if category.children.size > 0
2005 Mar 10
8
Login controller additions
I have added roles and roles_users table and updated the model so that
my users can have multiple roles.
("Admin" role does always have id = 1).
I have added these methods to my application controller.
<code>
helper_method :is_admin?
helper_method :is_user?
def is_admin?
if @session[''user'']
@session[''user''].roles.find(1)
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
2005 Mar 09
1
Re: Tons of shiny new stuff (Tobias Luetke)
Tobias, I would have left a comment on your blog, a thanks really, except
that the comment submit form is throwing an error. So, thanks for the cool
tools, especially the login generator. After deleting the old generator the
new one worked and passed all tests in a snap. Like Tim Lucas said, the
Hieraki code base is a wonderful resource for someone learning Rails. Much
appreciated.
2005 Mar 14
1
(newbie) /tmp/fcgi_ipc ?
I am running Rails on my Mac, installed from fink/gems. I get this
error when I try to re/start Apache:
FastCgiIpcDir /tmp/fcgi_ipc: access for server (uid -1, gid -1) failed:
read not allowed
If I chmod the /tmp/fcgi_ipc directory, apache starts and everything''s
fine.
Why is fcgi_ipc in my /tmp directory? Can anyone guess why the
chmod''ing doesn''t seem to
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 Mar 25
2
Rails PDF Documentation
hi,
i''m falling in love with rails, but the main obstacle is digesting the huge
amount of documetation for it... i''m getting dizzy flipping back and forth
between my development and the online reference.
i know rails is in a constant state of flux, but surely there is a pdf-ized
version of the api reference out there somewhere. alas, google tells me there
is no such animal.
2005 Mar 26
2
Problem with GEM
I try the following command:
gem cleanup
and I get this:
C:\Ruby\bin>"c:\Ruby\bin\ruby.exe" "c:\Ruby\bin\gem" cleanup
ERROR: While executing gem ... (RuntimeError)
Unknown command cleanup
Even if I try:
gem cleanup rails
I get the same thing.
Anyone know what I am doing wrong?
Thanks,
Chad
2005 Jul 06
4
Rails Community Site Hacked
http://wiki.rubyonrails.com/rails/show/HomePage
Now sure if anyone has noticed yet, but the above page has been hacked.
2005 Jul 22
1
A Bit Baffled By text_field
Hello.
I am converting my Java app to Rails and I''ve hit something that has me a
bit baffled. I''ve been fiddling with this for over an hour and trying many
different combinations so at this point I''ve lost perspective.
It''s probably something simple but I can''t see it anymore.
I have a component that looks like this:
<% for advertiser_category in
2005 Aug 08
1
php_serialize-1.0.2.1.rb questions
Has anyone used this to get data out of PHP sessions?
I can get data out using the php_unserialize function however I am
getting a array of strings that looks like this:
["key1: data1","key2: data2"]
I would rather get RoR session style of associative arrays
["key1"=>"data", "key2"=>"data2"]
Am I just being dense and there is an