Displaying 20 results from an estimated 60000 matches similar to: "rails runner giving problem"
2011 May 20
3
"no such file to load -- rails/commands/runner (LoadError)"
Hi,
I am using ruby 1.9.2 and rails 3 for my application.
I have written a bash script which I want to run in cron.
If I directly run the bash file it runs. If I run it through the cron I
get the following error:-
"/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require'': no such file to load -- rails/commands/runner (LoadError)
from
2011 Apr 27
6
rubygems (LoadError)
I''m trying to set up a cron job with a runner that calls a method in one
of my models. I''m using javan''s whenever gem to do this and I''m running
CentOS on my server. Whenever the cron executes though I''m getting the
following error:
`require'': no such file to load -- rubygems (LoadError)
The method uses the ''mail'' and
2008 Oct 22
3
Rake task vs script/runner
Hello, until now I allways used script/runner for running Rails cron
jobs
I wonder is there is any benefit (except not having any fake runner
model in the models directory) to use a rake task instead in lib/tasks
Thanks
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
2010 Jun 03
7
Scheduled tasks in Rails: Cron + wget = Best solution?
Hi there,
do you agree that for having scheduled tasks in Rails, the leanest
solution is the following?
- Create a controller with an action for each task
- Implement the logic of the task as controller code
- Set up a cron job at the OS level that uses wget to invoke the URL of
this controller/action at the appropriate time intervals
Advantages:
1) full access to all your Rails objects just as
2010 Feb 23
2
Logging and Exceptions with Script Runner
I have cron jobs that run script/runner commands and I have two
questions:
1. Should logging be working when calling the logger methods from an
object within the script?
2. Should Exception Notification work when an exception occurs in the
script/runner?
Thanks!
Tom
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to
2010 Jan 28
5
files are missing in rails app
I''ve built the slackware packages of rails.
rails path is: /frm/ruby/1.8.6/lib/ruby/site_ruby/1.8
RUBYLIB :
/frm/ruby/1.8.6/lib/ruby/site_ruby/1.8:/frm/ruby/1.8.6/lib/ruby/site_ruby/1.8/i686-linux/
I could created the rails application, but files are missing.
Config
- boot.rb, database.yml, environment.rb and routes.rb
Public
-
2010 Aug 23
11
Rails 2.3.8 or Rails 3 ?
Hi,
If I''m going to start developing a new rails based web application,
should I go for Rails 3 or Rails 2.3.8 ? why this and not the other ?
Thank you.
Dani
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2010 Aug 03
4
rails 3 download - where ?
I''m trying to update my rails from 2.3.8 to 3.0, where can I get the kit
from ?
Thanks,
Dani
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group,
2010 Sep 08
4
On init webrick get older rails version (suddenly)
Hi!
I''m running rails 2.3.8, confirmed by the prompt (rails -v)
I''m doing a project and on other occasions I have needed
install nested forms.
I followed the steps
(http://weblog.rubyonrails.org/2009/1/26/nested-model-forms)
This steps:
$ git clone git://github.com/alloy/rails.git
$ cd rails
$ git checkout origin/normalized_nested_attributes
$ cd ../..
$ ruby
2011 Nov 24
4
How to upgrade rails 2 application to rails 3?
I developed a rails application using rails 2.3.8 version but now how to
upgrade this application in rails 3.0 version.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe
2010 May 17
2
"end of file" error for "net/https"
Hi,
I have written following code:-
It is working fine for http protocol. But whenever I am doing for https
I getting an error "end of file reached".
Can anyone tell me what is wrong with the code?
def email_to_friend
require ''net/http''
require "net/https"
require ''uri''
#res =
2011 Jan 17
3
Rails 3: Using local timezone on DB
I''m in the process of upgrading my existing Rails 2.3.8 app to Rails
3.0.3.
One problem that I have encountered is how to make rails 3 read/write
date/time data into the DB in localtime.
In Rails 2.3.8, commenting out the ActiveRecord timezone settings did
the trick, however in Rails 3, that doesn''t work as the default is now
UTC.
I have tried setting the config.time_zone to
2011 Mar 31
3
can i switch to rails 2.3.5 and run a rails 2.3.5 code??
Hi all,
i have installed rails 3 using RVM . the prob is now i have two parallel
projects where one is in 2.3.5 and another is in rails3.
i use Mac o x 10.6.3
mysql :Server version: 5.1.56 MySQL
so can i switch in between rails3 and rails 2.3.8??
this is my gem list...
actionmailer (3.0.5, 3.0.5.rc1, 3.0.4, 3.0.3, 2.3.8, 2.3.5)
actionpack (3.0.5, 3.0.5.rc1, 3.0.4, 3.0.3, 2.3.8, 2.3.5)
2011 Nov 13
1
How do you execute "rails runner" in Heroku?
I''m going through the 4th edition of the book _Agile Web Development
in Rails_.
One of the exercises involves automatically creating 100 orders. The
command to run locally is "rails runner script/load_orders.rb". I
have no problems here - it works.
What''s the command for running this in the deployed Heroku application?
--
You received this message because you
2010 Jun 24
1
Rails 2.3.2 upgrade to 2.3.8 problem
Upgrading to Rails 2.3.8 from 2.3.2 has broken views in my application.
Specifically the field labels are all displaying </br> after the label
text and therefore the alignment is all messed up. Instead of nicely
aligning with the label text on the top and text entry field under it,
they line up side-by-side and are misaligned. The tell-tale sign is the
appearance of </br> tag after
2013 Jan 03
8
How to Install Ruby and Rails
I want to install Ruby 1.8.7 and Rails 2.8.3,i am using ubuntu 11. Thank
you
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
2010 Sep 06
18
problem when : ruby script/server
Hi;
Now I have tried the following, installed
ruby 1.8.7 (2010-08-16) [i386-mingw32]
rails 2.3.8
when I start the server --> ruby script/server, I get the following
eeror:
C:\Rails\demo>ruby script/server
=> Booting WEBrick
=> Rails 2.3.8 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2010-09-06 23:53:31] INFO WEBrick 1.3.1
2010 Aug 13
5
"uninitialized constant" Error for CalendarHelpper
After installing calendar_helper-0.2.3 gem, application using
CalendarHelper works fine. Then I tried to test using rake command which
gave me the following error.
Why does these messages appear evenif the application owrks fine.
------------------------------ Error Messags
--------------------------------------
/usr/local/jruby-1.5.1/bin/jruby -I"lib:test"
2011 Jan 02
1
After upgrading to Rails 3, getting errors in Rails 2 app
Hey all
After upgrading to Rails 3, when I try to run Rails 2 app, I get this:
script/server
Missing the Rails 2.3.8 gem. Please `gem install -v=2.3.8 rails`, update
your RAILS_GEM_VERSION setting in config/environment.rb for the Rails
version you do have installed, or comment out RAILS_GEM_VERSION to use
the latest version installed.
MacBook-Pro:MK JANUARY jmerlino$ rails -v
Rails 3.0.3
So I
2010 Jul 01
25
Encoding problems with Rails 3 + Ruby 1.9.1 (big surprise)
I have kind of an interesting problem.
I have a form wherein people enter information. Big surprise. If they
enter any "weird" characters like ø or é or whatever, the form will
submit and all is well. However, I have a select box for the state
which, if you''re looking at Spain, has states like A Coruña, Cádiz and
País Vasco. These are pulled from the database which is set to