similar to: rake stats

Displaying 20 results from an estimated 4000 matches similar to: "rake stats"

2006 Jun 22
1
acts_as_taggable gem problems
With acts_as_taggable 1.04... 1. how can I get a frequency of tags? i.e. /tags/list I want to list of tags sorted and listed with their frequency tags_controller.rb: def list @tags = Tags.find_by_sql ''select name, count(*) as freq from tags group by name order by freq desc'' End tags/list.rb: <ul> <% @tags.each do |t| %> <li><%= t.freq %>
2006 Jul 18
2
how to generate calculated db fields
I''m trying to generate a "page slug" i.e. a url sanitized id from some text in my model that I want to be saved into the database and I''m not seeing how I can do it. The closest I''ve come to getting this to work has been... class Page < ActiveRecord::Base attr :name before_save :generate_slug def generate_slug self.slug = self.name.gsub
2006 Jul 17
3
functional tests run fine on their own but fail with rake
this is a weird one. i have 8 functional tests classes. when I run them individually, they all pass. When i use rake or ''rake test:functionals'' one of them fails. I''ve traced the error back to a problemwith reading data from the session. when running the tests individually, the data is there. when run using rake, it''s nil. has anyone come across anything
2005 Mar 09
1
rails apps with a nice functional test suite
hi! i''m looking for some nice open source rails app (must use 0.10) with a great functional test suite. i wanna test and demo my benchmark stuff a bit. thanks! ciao! florian
2006 Jul 14
1
receiving nil exception in rake tests
I''ve been doing some really simple rails testing, going along with standard "red light... green light..." back-and-forth-ing. All of a sudden, rake was reporting that there were "Test failures" but not showing any stack trace. I went into /usr/local/ruby/.../rails/lib/tasks/testing.rake and looked at the source that ran the tests. I found these lines: --- desc
2006 Nov 12
2
Model-less SQL results
I''m trying to get some stats from my database about my model, and I''m not sure how to go about it. If I have a model ''foo'' that has an attribute ''color'' and I want to get some counts on this I could use the sql: SELECT color, COUNT(*) AS count FROM items GROUP BY status which would return something like: +--------+-------+ | color |
2007 Aug 30
1
alias_method_chain stack level too deep in Rake test only
I have an odd error. I have the following module: module ActionController module SslSupport def self.included(base) raise "#{base} does not define url_for" unless base.method_defined?(:url_for) unless base.respond_to?(:url_for_without_ssl_supprt) base.send :include, InstanceMethods base.send :alias_method_chain, :url_for, :ssl_support end
2007 Dec 05
1
rake error - please help
Hi- I''m suddenly getting this rake error where as before I wasn''t. And nothing''s been changed. As you can see it says something about "load_missing_constant". Is my development environment broken? Can someone please tell me what this error means?: bbgun@echobase:~/RailsProjects/rails_space$ rake test:functionals (in /home/bbgun/RailsProjects/rails_space)
2006 Jul 27
7
''remember me'' using cookies
I''m about to implement this, and I''m thinking of storing the user''s id and their hashed password in the cookie after a successful authentication. can any see an obvious security issue with this? I know the method is vulnerable to cookie theft but am i missing anything? thanks alan
2006 Jun 24
2
contents of /lib automatically loaded?
I''ve written a simple replacement (not extension) of Ruby''s array class with some added functionality. I defined it in array.rb and put the file in rails_root/lib but when i fire up the console the class isn''t being loaded. How can I have my class automatically loaded and used instead of the built in Ruby class?
2009 Mar 06
2
rake test:functionals -> Task not supported by ''
I have a Rails project in which I''ve been using "rake test" tasks with great success. At some point (there were a few changes in the interim), rake started aborting test tasks. Here is the dialog: === $ rake test:functionals (in /Users/fritza/myproject) rake aborted! Task not supported by '''' (See full trace by running task with --trace) === The separate
2006 Jun 24
5
Rake vs Ruby for running tests (error discrepency)
I''m having (to me) a strange problem with errors when running my tests with rake as opposed to using ruby. If I do rake test:units I get this error for several tests, but not all: 13) Error: test_player_has_game_statistics_for_season(PlayerSeasonTest): ActiveRecord::StatementInvalid: Mysql::Error: Duplicate entry ''22'' for key 1: INSERT INTO positions (`name`, `id`,
2007 Apr 10
0
rake test:functionals seg fault
Hello, I get a segfault since I''ve updated my system (to rails 1.2.2 and rake 0.7.2) when running rake:functionals I''ve tried to run each individual test, none of them produced a seg fault. Ruby version is 1.8.4 (CentOS, the OS I''m using don''t provide an official 1.8.6 release) Thanks -- Posted via http://www.ruby-forum.com/.
2010 Feb 25
0
Rails problems running rake and other tasks - undefined method `action_controller'
I suddenly have a major problem in all my Rails 3 apps: $ rake db:migrate --trace rake aborted! Don''t know how to build task ''db:migrate'' /Users/kristianconsult/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/ rake.rb:1728:in `[]'' /Users/kristianconsult/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/ rake.rb:2050:in `invoke_task''
2006 Aug 16
15
OT: finding a designer (bit of a rant)
I''ve written my app already. It outputs valid xhtml and I need a stylesheet to drop over the top. How hard is it for people to understand that? It''s a small project, they''d have to do the main design/layout, and then a little custom styling for some specific elements which don''t appear on every page. That''s the point of CSS right? write once, use
2006 Jun 24
2
gettext and maintenance
hi all my app has two languages, I''m using gettext to manage them and so far so good. My question is about maintenance. If I fix a typo in a _() enclosed string, for example in an rhtml file, then the translated version of that string will no longer be valid will it? even if the translation itself had no errors. Is that the case and if so will i be forced to have the _() string
2006 Jun 22
2
acts_as_taggable smakdown
Okay, so I just realized there seems to be two acts_as_taggable modules, the gem and the plugin 1. which came first? 2. what''s the difference? (internals, not ones a gem and ones a plugin) 3. which one is better? ;-) -- Craig Beck http://www.luckybonza.com AIM: kreiggers
2006 Oct 23
3
Rails webmail
Hi, I''m searching for a rails webmail and if available with calendar, contacts, filter, etc, in the spirit of GMail (Horde is tiring). I only found mailr which seems to be dead. Anyone of you knowns one ? Thanks -- Beber - E-Mail / Jabber (+GMail) : beber_AT_meleeweb.net http://www.meleeweb.net
2006 May 28
0
rake errors - not as helpful as they could be
hi list - i recently attempted to run rake for a first pass at some tests and ran into a mysterious failure. rake indicated that it had aborted running the tests but provided little information on exactly why this occurred. the only bit of information it did offer was that i could use --trace for a full trace. of course i did that hoping it would provide more detail, but it didn''t help a
2012 Jun 26
2
Error with rake command
I am using Rails 2.3.8 application and when I enter rake command it gives following error : ms@ms-HP:~/OpenStreetView$ rake WARNING: ''require ''rake/rdoctask'''' is deprecated. Please use ''require ''rdoc/task'' (in RDoc 2.4.2+)'' instead. at /home/ms/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/rdoctask.rb rake