similar to: Typo 2.0

Displaying 20 results from an estimated 1000 matches similar to: "Typo 2.0"

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 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 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 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
2009 Aug 25
3
[Bug 23505] New: KDE's Kubrick has problems with xf86-video-nouveau driver
http://bugs.freedesktop.org/show_bug.cgi?id=23505 Summary: KDE's Kubrick has problems with xf86-video-nouveau driver Product: Mesa Version: git Platform: Other OS/Version: All Status: NEW Severity: normal Priority: medium Component: Drivers/DRI/nouveau AssignedTo: nouveau at
2005 Mar 07
3
Tons of shiny new stuff
Ok despite this crazy flu which got me last week i was able to get some coding done. Here goes: == Hieraki Hieraki got plenty of improvements next to the rails 0.10 update. The biggest new features are proper yaml, html and readme export. But there are also plenty of new code improvements like the switch to my favorite postback style for all controllers. Hieraki traditionally serves as a demo
2005 Mar 08
3
Chapter Numbering in Hieraki
I''m using Hieraki to do some documentation for RubyGems. So far I''m lovin'' it. But I have a question. I currently have three books on the site. It seems that the chapter numbers continue from one book to the next. For example, the first book has 7 chapters (numbered 1-7). The second book has three chapters, but they are numbered (8-10) rather than the (1-3) I
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 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 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 Apr 01
11
I want to blog!
This isn''t Rails or Ruby related, but I just need some advice and thought I''d ask the bright individuals here. I want to start my own blog but I''m not sure where to begin. I don''t want to get a blogger account because I want to have my own domain. Blogger also doesn''t have many features. My hosting service is 1AND1 so it supports php, cgi and mysql.
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
2006 Apr 05
6
Help with new EventSelectors in prototype
Hello, I can''t seem get to work the newly inctroduced EventSelectors of protoype. I downloaded the latest release via SVN. And included both prototype and scriptaculous. This is a short extract of my test: <body> <div id="footer">This is a footer</div> <script type="text/javascript"> var Rules = { ''#footer:loaded'':
2004 Jul 13
5
WiSIP and Zyxel Prestige 2000W
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Anyone have any experience with either of these, I 'd appreciate some feedback? Plus it seems pretty easy to steal a connection with this. Zyxel Prestige 2000W WiSIP thanks, - -- Steve "They that would give up essential liberty for temporary safety deserve neither liberty nor safety." Benjamin
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 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 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 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