search for: gadgetlif

Displaying 20 results from an estimated 25 matches for "gadgetlif".

Did you mean: gadgetlife
2006 Jun 26
4
Migrations and svn branches...
We are currently doing some development on a variety of branches that each have their own set of migrations (gee, database changes on a branch? how novel). The problem is with this strictly linear numbering of the migrations and these alternate branches. Let''s suppose I have branches/foo that adds two migrations 024_add_foo.rb and 025_refine_foo.rb and then another branches/bar
2005 Dec 28
6
coverage does not work
Hi, I''ve installed coverage (gem install coverage) and try to run tests with -rcoverage option on, but following error occurs: ruby: No such file to load -- coverage (LoadError) I try: ruby -rcoverage mytest.rb 1. I have rubygems in evn var RUBYOPT 2. Gem seems to be installed properly (I can read doc via gems, the files exist in the ../gem/... dirs) Does anyone know what is the
2006 Apr 08
2
Does anybody know what what is causing this console message?
This started, I think, after I upgraded to 1.1. trunk 508 $ruby script/console Loading development environment. /usr/local/lib/ruby/1.8/test/unit/assertions.rb:265: warning: already initialized constant UncaughtThrow >> Everything seems to work in the console, however. Keith -- Posted via http://www.ruby-forum.com/.
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
2007 Apr 10
10
Could eBay be built with Rails?
My friend and I (both new to RoR) were having a discussion today about whether or not you could build an exact replica of eBay using on Ruby on Rails. I think that it could in fact be done, or at least a very close model of the same concept. My friend seems to think that maybe in fact, it could not be done. What are your thoughts? Could an eBay clone be built using only Ruby on Rails? What do you
2006 Jul 14
5
migration and inserting default data
Hi, I''m wondering is there a way to load default data in the migration script? So, for example I''m creating new table to store the order status, I also want to pre-populate the table with some data from a sql file. I have done a quick search on the list but cannot find anything. thanks, - reynard -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Aug 15
0
BlueCloth throws exceptions! Be careful! (was: auto_link fails to handle tilda''s (~) and markdown fails to handle acute accent (`))
...at it as unsafe. Catch exceptions. You''ll save yourself a few frustrating "Application Error" pages on some of the rare edge cases, and protect yourself from one of the simplest DoS attacks I''ve seen. > CHEERS> SAM Sincerely, Tom Lieber http://AllTom.com/ http://GadgetLife.org/
2006 Jun 27
3
Easy question: Where do I put sweepers?
Trying to implement some sweepers to clean up my caching, but where do I put them? "ruby script/generate sweeeper" does nothing. -- Posted via http://www.ruby-forum.com/.
2006 Apr 02
2
Blank image for non-existant image URLs
Morning/Afternoon/Evening All, Just wondering if anyone has any suggestions on forwarding requests to invalid images (ie images that result in a 404 error) via routes.rb or a similar method? If possible I would like it to be based on the url so I can have different blank pictures for different directories (ie /images/people/user_id.jpg => /images/people/blank.jpg and
2006 Apr 11
2
Passwords in SVN?
Hi everyone, Where do you all keep your passwords for your apps? Out Subversion repo is locked down to authorized users, and only those users can see code in Trac. Is it safe to store passwords in there? For Rails? For other scripts? What''s your strategy for this? Thanks! Sean
2006 Apr 24
2
Session problem?
I have three apps that I run from the same menu html page. On occasion, after a reboot for example, I show the menu page and run one of the apps. I don''t use the other two apps at all. Much later (hours or days) I click on one of the other two apps and I get the Application error Rails application failed to start properly" No log messages in the app''s
2006 Sep 06
1
Changing Scaffold
Hi, I am starting a project in rails and I wish to change scaffolding. I''ve already done some changes like prepare all texts for locale. Now I am wishing to change the way it generates the _form partial. Could someone give some guideline so I can study such thing? I saw "template_for_inclusion" in form.rhtml but couldn''t find out how to change it. Being more
2006 Mar 22
1
How to go DRY?
We are creating a website for creating and maintaining communities. When members of a community are listed, we show their summary in a TABLE. So we have written a _member.rhtml partial to show this summary for that member. To show the memberlist we do render :partial => member, :collection => @members Now the problem is the row displayed for every member by the _member partial, may differ
2006 Apr 25
2
School Years/Teams listing problem
People, I have tables years and teams and I have the years listing like: 1965 1966 1967 . . I want to be able to click on the year and ONLY list teams for that year. At first I thought the following was working until I started populating the table with teams for more than one year. For views/years/list.rhtml: <% for year in @years %> <tr> <td> <%= link_to
2006 Jun 06
5
ruby mathematical expression parser
Hi, Has anyone come across a Ruby mathematical expression parser, capable of parsing out token, replacing them with values then executing the mathematical formula? Nothing too heavy, A * (44/12) * ... etc. where A is can be replaced with a value. In Java there are serveral, like JEP, but I''d prefer it we could get a Ruby one now we have moved over to Rails, otherwise we will have to
2006 Jul 23
18
help with "rake db:migrate" error please?
Hi, Just trying to get my first database based rails app up on dreamhost.com. The app was working prior to putting in mysql DB usage but I''m just stuck on getting the app working with mysql. I''ve already created the database and can connect to it manually. Below is the error I get after running the rake migrate. It worked OK on my home PC environment. I did change the
2006 Mar 07
6
Anybody use Red|Blue Cloth?
Does anybody use and prefer Redcloth (or bluecloth, which appears to be alpha)? Does it affect performance much? Is there a way to get it to automatically process templates without having to call textilize? Thanks, Joe -- Posted via http://www.ruby-forum.com/.
2006 Jul 28
8
Manning Ruby/Rails contest
Manning is running a contest: If you make the winning entry, you''ll win a $100 Manning Gift Certificate (hey, that''d be two copies of David''s awesome Ruby for Rails). the contest is to complete the phrase: Ruby is to Rails as ___________ is to __________________ The contest is at: http://www.manning.com/black/contest.php -- thanks, -pate
2006 Jul 02
11
Rails Plugin: meantime_filter for controllers (actions within blocks)
Hello, I just finished writing a plugin for Rails that I''m annoucing the first release here: meantime_filter. It is descibed at http://roman2k.free.fr/rails/meantime_filter/0.1.0/ rdoc/ (See the end of this message for getting it.) ABOUT THE PLUGIN It extends ActionController to add the functionnality of having filters run at the action call time. This new type of filter yields
2006 Jan 09
11
Fast Ruby Debugger?
After developing in Java for years in IDEs I''m starving for a decent ruby debugger. When learning new codebasesI find it invaluable to use the debugger to step through the system and see how things work at runtime. Using RDT in Eclipse is fine but it''s excruciating to wait minutes for the default debugger to finally reach my breakpoints on tests that normally take seconds to