similar to: Background thing for Rails 3?

Displaying 20 results from an estimated 50000 matches similar to: "Background thing for Rails 3?"

2010 Sep 12
11
Rails 3: finding a record by name in multilingual app
Hello, I upgraded my application from Rails 2 to Rails 3 and ran into a problem. In rails 2 I could use the english name of the record to find it like: Page.find_by_name("Welcome") even though the user chose German as the language (which of course showed the German welcome page. Eversince I switched to Rails 3 (default_locale still :en) I can''t find anything by giving the
2010 Jul 13
1
will_paginate destroys link_to_remote?!
Hello, I''ve got a list in a view and each of element of it has a link_to_remote and everything worked like a charm. Now I added AJAX pagination and the link_to_remote doesn''t work anymore. This is the partial of the list: <% for character in characters %> <%= character.name %> <%= link_to_remote t(''.add''), :url =>
2010 Aug 22
7
Rails 3: Error saving an object with no useful information
Hey, I''m kinda desperate cause I''m getting an error and have no idea how to fix this since it doesn''t give me any information hinting where the problem is: irb(main):054:0> reload!;User.last.save! Reloading... NameError: undefined local variable or method `to_ary'' for #<User:0x4ed5d20> from
2010 Sep 13
10
Could not find [GEM] locally or in a repository
Hey Guys, How could I fix the following: "gem install --no-rdoc --no-ri kete-feedzirra" ERROR: could not find gem kete-feedzirra locally or in a repository "gem install --no-rdoc --no-ri libxml-ruby" ERROR: could not find gem libxml-ruby locally or in a repository "gem install --no-rdoc --no-ri http_url_validation_improved" ERROR: could not find gem
2010 Apr 07
0
Problems with no method error with rufus scheduler
Hi, I have a problem with rufus. I created a test.rb file in the /config/ initializers folder. test.rb require ''rubygems'' require ''rufus/scheduler'' scheduler = Rufus::Scheduler.start_new scheduler.each ''10s'' do puts "hey see you in 10seconds!" end works fine so far. Now I change it to: test.rb require
2010 Aug 19
4
Postgres, concurrency, and rails
I work on a fairly large website that uses Ruby 1.8.6 and Rails 1.2.3. We cannot upgrade as it will hopelessly break our code. We are working on a new version in Java but for the next year at least we are stuck with the legacy system. We use the latest version of Postgresql for the database using the postgres-pr gem. I am attempting to implement cron tasks within the system using Rufus Scheduler,
2010 Dec 02
7
Rails 3 + Authlogic not working all of a sudden
Hey People, I''ve been working on Rails 3.0.0 and Authlogic for quite a while now but all of a sudden I can''t login into my application anymore. After some research I found out that no sessions are stored into the db anymore so I started the console and saw this: ruby-1.9.2-p0 > u = UserSession.new({:username => ''Test'', :password =>
2011 Nov 01
1
Rails 3.1, stylesheet assets not being reloaded correctly?
Hi, I''m working on a Rails 3.1 project at the moment and having a hard time getting the stylesheets properly loaded. My application.css.scss looks like this: /* * This is a manifest file that''ll automatically include all the stylesheets available in this directory * and any sub-directories. You''re free to add application-wide styles to this file and they''ll
2011 Sep 07
6
FactoryGirl doesnt produce unique names?!
Hey, I got following very simple test case: require ''spec_helper'' describe Country do it "should create a new instance given valid attributes" do Factory(:country) end end Factory looks like: Factory.sequence :country_name do |n| "Country #{n}" end Factory.define :country do |c| c.name Factory.next(:country_name) c.nationality "Foo
2010 Feb 11
1
Model not found in custom script...
Hello, I have a custom task_scheduler.rb file in RAILS_ROOT/configuration/ initializers. It fails because I think that it doesn''t know where to find my Category model. Do you know how I can load or have available the resources/environment that myrails app uses into this script? Thanks, Frank task_scheduler.rb ======================= require ''rss'' require
2010 Jan 30
12
Best way to connect various applications?
Good evening, I''ve got three different self-programmed Rails application I need to connect and manage with a 4th "supervisor" application. There''s a wiki application, there''s a shop application and there''s a business directory application all with seperate user database etc. What I want now is one single user table so it can be all controlled by one
2010 Nov 27
2
Long elaboration
Well.... my problem is that after form post, I have to do a long elaboration. So, my page remain stuck for a long time.... I would like to display an intermediate page after post (thank for your collaboration..blah, blah, blah.....) so that the visitor knows whats going on. Any suggestion? Thanks in advance... -- Posted via http://www.ruby-forum.com/. -- You received this message because you
2016 Mar 08
0
Module Versioning... and other things
On 2016.03.08 13:13, BALATON Zoltan via Syslinux wrote: > For isohybrid > tech-savvy users are creating a bootable iso (from scratch or converting > an exiting non-hybrid iso) with all of their brain power available to > solve problems as they encounter it and (hopefully) understanding what > they are doing with non-tech savvy end users having nothing to do. Which doesn't mean
2010 Nov 29
3
session active_record_store
Hi, There doesn''t seem to be any previous posts about this problem, I must be setting things up wrongly at very basics... Firstly, the problem... I can''t get session[] to persist with active_record_store. I enabled (config.action_controller.session_store = :active_record_store) in environment.rb and created the sessions table at my MySQL database. When I do a session[:blah] =
2012 Sep 10
4
Object Efficiency
So I am using rufus-scheduler to call a controller which in turn calls an email receiver to check emails... In my controller, I have an instance method called checkEmail In my rufus config file, I have to call MyController.new.checkEmail. Now I set it to run every 5 minutes. So the system creates a new MyController instance every 5 minutes. That''s very inefficient right? I guess
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 Aug 22
1
rails3: t.index in migrations not working anymore
Hello, I''m playing around with Rails3 and trying to upgrade one of my applications to Rails 3.0.0.rc and I get an error which should be still working. Migration: t.index :name When I execute rake: rake aborted! An error has occurred, all later migrations canceled: undefined method `index'' for #<ActiveRecord::ConnectionAdapters::TableDefinition:0x4b2b6b0> Does some one
2011 Nov 01
0
echo command in rails
Hi, I am following the instructions given in the link "http://mutoumahendra.blogspot.com/2010/07/tinymceplugins-spellchecker-on-rails.html" for doing spell check. The problem I am facing here is, I am not able to run `echo "#{spell_check_text}" | aspell -a -l #{lang}` command while executing command. When I execute the method the above command is returning blank. My
2010 Feb 11
2
Error when starting rails server [on rails 3]
Hi all, I receive an error when starting the server, namely: ~/Documents/blog$ rails server /usr/local/lib/site_ruby/1.8/rubygems.rb:827:in `report_activate_error'': RubyGem version error: rack-mount(0.5.0 not ~> 0.4.0) (Gem::LoadError) from /usr/local/lib/site_ruby/1.8/rubygems.rb:261:in `activate'' from /usr/local/lib/site_ruby/1.8/rubygems.rb:296:in `activate''
2010 Nov 30
1
rails 3 meta_search usage
I am in the process of upgrading my app from Rails2 to Rails3. My Rails2 app uses searchlogic heavily. After googling i''ve come to know that searchlogic is not compatible with Rails3 and need to use meta_search instead. But i havent quite understood the usage of meta_search vis-a-vis searchlogic. If i have a User model with :name and :address fields, i am not able to use the following