similar to: Rake task that allows you generate static error pages in public folder from partial.

Displaying 20 results from an estimated 10000 matches similar to: "Rake task that allows you generate static error pages in public folder from partial."

2007 Dec 26
2
How to set environment when calling rake task inside another
This is what I have inside a rake task. In this rake task I need to call another rake task called email:send_messages. However I need to pass the RAILS_ENV as ''staging''. Rake::Task["rake:email:send_messages"].invoke I tried a lot of variations but none of them work. Rake::Task["rake:email:send_messages"].invoke RAILS_ENV=staging
2006 Aug 11
1
Absolute path to public/images in rake task?
Hi all I''m trying to create a rake task for the first time, so please be a bit patient with me. ;-) I''m coding a photo gallery. Every photo gallery''s photos are in its own folder, and after an update I''d like to be able to synchronize the photo files with the database (because every photo has its own Photo class object). I''ve got so far: # File
2013 Mar 01
7
Why so many worker threads?
Hello! Can anyone explain why my Unicorn installation (for RoR site) have so many worker threads? * screenshot: http://i.stack.imgur.com/U9TFR.png * unicorn.rb: https://gist.github.com/907th/4995323 Thanks!
2011 May 25
1
rake task: uninitialized constant
I have this rake taks: CUSTOM_MONTHS = [nil, "GEN", "FEB", "MAR", "APR", "MAG", "GIU", "LUG", "AGO", "SET", "OTT", "NOV", "DIC"] def parse_date_string(date_string) begin day, month, year = date_string.split("-") Time.mktime(year, CUSTOM_MONTHS.index(month),
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
2008 Apr 08
2
Can you add an option to select the ruby interpreter for rake task?
Hi all, My problem is that I''ve installed both ruby 1.8 (as ruby) and ruby 1.9 (as ruby1.9) on my system. I use spec/rake/spectask for my Rakefile. But the generated command is ruby -I.. blabla it should be "ruby1.9 -I... blabla", but after look at the code of spectask.rb, I found this line: ==> cmd = "ruby " rb_opts = ruby_opts.clone
2006 Dec 02
0
Serving static svg images in the public folder
Hi! I am trying to use svg images and serve them from the public/images folder. When using the url_for method I have to use the complete file name including the extension. Can you explain why? I don''t need to use the extension for gifs/jpegs/pngs. Using the complete filename with url_for or writing a direct url to /public/images I can get the file, but the mime type is text/plain, so
2008 Jan 30
0
prob linking to static page in public folder
For the first time, I''m trying to link to a static page and running into a problem... Here''s the link_to code: <%= link_to "Terms of Service", ''/terms_of_service.pdf'', :popup => true %> And here''s the error I''m getting: no route found to match "/terms_of_service.pdf" with {:method=>:get} Should be simple and
2009 Nov 05
1
Cucumber cannot find a static page located in public folder
Hi, I recently started with Cucumber. I''m having an issue with a static page that I locate in the public folder. When an user registers to the site I send an activation code via email. That notification is show to the user by redirecting to a static page located in the public folder. If I start the server and register I get redirected properly to the static page. But when I run the
2006 Mar 21
0
is "Task" a reserved class name in Edge Rails? (it clashes with Rake''s Task)
Ok, so I''ll bet that lots of people would naturally have a DB table called "Tasks" and a model called Task, and this works fine in Rails 1.0. BUT, using Edge Rails things turn strange when you start visiting your Task pages because it thinks that you''re trying to use Rake (which also has a Task class). Is there any way around this? -Greg Greg Edwards CTO,
2013 Jul 01
0
Rake task like "rake cache_digests:dependencies" for Rails 4?
The cache_digests gem has the "rake cache_digests:dependencies" task for checking template dependencies. Since Rails 4 includes this caching scheme by default, should it include a similar rake task? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send
2020 Mar 18
0
[PATCH i-g-t] tests/kms_plane: Generate reference CRCs for partial coverage too
From: Lyude Paul <lyude at redhat.com> There's been a TODO sitting in the kms_plane test suite for a while now as a placeholder for actually generating a reference CRC for plane-position-hole tests. This means we have never actually been verifying whether or not partially covering our hole with a hardware plane works displays properly, and have just simply been checking that the frame
2013 Feb 28
0
Rake tasks db:test:prepare cannot be executed in the same task of db:reset or db:migrate
Hey all, I''m trying to create a task that prepare the environment to start programming. To do so, I created a task like this *task :setup_env => [''db:reset'', ''db:migrate'', ''db:test:prepare'']* and observed that after execute * rake setup_env*, it never execute db:test:prepare properly. In order to get the schema cloned to test db,
2006 Oct 22
0
[705] trunk/wxruby2/rake/rakedocs.rb: Add rake task to publish docs to wxruby website (Alex Fenton)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding:
2007 Oct 12
0
Speccing a rake task
Greetings, I''m writing a custom rake task, and I''d like to write an assosciated spec for it. Does anyone have an example spec for a rake task? I''ve seen some examples on the web that use these before blocks: before(:each) do @rake = Rake::Application.new Rake.application = @rake end And use @rake["db:user_migration"].invoke To invoke the
2007 Nov 01
0
Heckle rake task
Fellow hecklers, Just spent a while getting this working. Turns out heckle will heckle a whole module and sub-modules with one call, so with a bit of string matching, you can build a nice tool to heckle your whole app and report any failures. Was going to post to the list, as the first version was about 4 lines long, but I''ve embellished it slightly (I got carried away), so
2006 Aug 06
0
Best practice: installing plugin assets in rake task or install.rb?
I noticed that a few plugins come with rake tasks to install additional assets. In Rails 1.1.4 there''s a hook file, install.rb, that is run when after the plugin has been installed (edge Rails has uninstall.rb, too). Wouldn''t it be nicer to use this (these) hooks to install (remove) plugin specific files automatically? Preferrably existing (different) files are overwritten
2006 Jun 28
1
Is there a rake task to extract data from a database/table
I know I can get the schema by running rake db_schema_dump but, is there a way to ge the data from a table or a database into a format that can be quickly converted to a migration. What I''m really trying to do is synch my local development database (schema and data) with the db on my hosting service. -- Best Regards, -Larry "Work, work, work...there is no satisfactory
2006 May 09
2
Disabling FOREIGN KEYs in a Rake task
Hi, How could I disable my database FOREIGN KEYs in a Rake task? Or, how could I call the execute() method in a Rake task? I''m trying to perform something like: task :delete_the_cippalippa => :environment do require RAILS_ROOT+''/lib/marsian.rb'' # FIXME: execute() is undefined execute "SET FOREIGN_KEY_CHECKS = 0" Cippalippa.delete(-1)
2006 May 11
0
Using action view helpers (strip_tags) in a rake task?
Hi all - I''ve got a rake task that migrates some old data (simple, loop through the old stuff, modify it a bit, and save it to the new system). That all works great. However, I''d like to use strip_tags() to remove all HTML from some of the fields I''m converting, but I can''t figure out how to include/use/require/load/etc the right stuff to make this work.