similar to: help active record modeling.

Displaying 20 results from an estimated 300 matches similar to: "help active record modeling."

2009 Jun 23
3
Starting ruby script on server's reboot
Hi I''m using passenger + apache. with this combination, how can I start my ruby script on server''s reboot? now I type "ruby myscript.rb run" whenever server reboot.
2009 Apr 25
5
SQLite3::SQLException: unable to open database file
Hi. I was trying to code same as the rails guide : getting started. I could follow steps to 6.3 Working with Posts in the Browser. (setting home page, creating a resource, running a migration) After clicked create button, errors are occured. SQLite3::SQLException: unable to open database file: INSERT INTO "posts" ("name", "created_at", "title",
2009 May 22
2
using console is a proper way in produciton?
Hello. I''ve planned to use script/console to support mainloop for my rails application. I need some infinite loop for doing my logic. For example, I want to give a point every second to users. to do this task I think I simply code like this: loop { GivePoint(); sleep 1 } on script/console and handle taks in the GivePoint method. Can this way work fine on commercial application? In fact,
2023 Jun 21
1
Multiple phones on same PJSIP account
On Wednesday 21 June 2023 at 17:52:16, TTT wrote: > Ok I've got multiple phone sets registered with the same extension/secret. > > However, this causes a strange problem. If I have 3 phone sets registered > on extension 123, and I then call extension 123 (from extension 456), only > a SINGLE phone set will ring. What values do you have for "max_contacts" and
2012 Nov 24
3
Designating a new year (Sept-Aug) in R
If I have data (below) and need some help in figuring out how I can change the values of my date column, so that a year will be from September-August? So the year 1990 = September 89-August 90; 1991 = September 90-August 91, etc... I was trying to use the if() function, but am unable to figure it out. I basically need to change the years associated with September-December to the following
2020 May 04
2
Fwd: [EXTERNAL] SNMP shutdown timing out
I meant to send this to the list but evidently only sent it to David. Since sending it I've done a second test which shows what a successful snmpset looks like. First attachment, from the forwarded email, is nutout.txt. Second attachment is snmpout.txt. nomad -------- Forwarded Message -------- Subject: Re: [Nut-upsuser] [EXTERNAL] SNMP shutdown timing out Date: Mon, 4 May 2020 09:28:57
2023 Jun 21
3
Multiple phones on same PJSIP account
Ok I've got multiple phone sets registered with the same extension/secret. However, this causes a strange problem. If I have 3 phone sets registered on extension 123, and I then call extension 123 (from extension 456), only a SINGLE phone set will ring. Is this by design or a bug? Does only the most recently registered phone set ring when I call the extension? Seems odd...is there a way
2013 May 21
1
Library without malloc
Dear all, I am trying to use the Speex library pre-processor, I only need the VAD and Echo Canceller. I am using a STM32F103 processor, but I am using a tiny OS and it doesn't allow to use malloc. Is there a version of the library that will work without the need of using malloc? Obviously I will use all the time the same parameters, like 8kHz sampling rate, 160 frame... I will appreciate
2006 Jan 13
1
Send XML Document with SOAP
Hello, yes it''s another ruby-nuby question but i cant find the right docs so I hope either someone has an answer or can provide links to what i havent been able to find. I am trying to call a wsdl web service running on .net server with a ruby client. I can make the request and with a wiredump I see the SOAP request and responce XML files, the files are correct but I am not sure
2006 Mar 02
3
Modifying "Find" to always add a condition?
I''d like to always add a condition to any version of "find" (e.g. Thing.find(), Thing.find_by_name(), Thing.find_by_whatever) so that in addition to whatever conditions are set, an additional condition is set :conditions=>"user_id=#{current_user.id}" I''d like to make sure that a user only sees/edits/creates entries in the database that have the user_id
2000 Sep 25
3
Out of file structures
Hi all, does anybody knows about the following Error ?!??! [2000/09/25 17:40:55, 0] smbd/files.c:file_new(85) ERROR! Out of file structures seems to be the max open files problem, am I right ? We did a research in some news and usergroups and in some answers it was mentioned, to compile samba with the sfio package to avoid using the select(3). Is that right ? Does anybody has any
2005 Dec 28
9
Idiom question - assertions which aren''t in tests
All, Although I''ve been keeping an eye on Ruby for several years now, I don''t have a huge amount of experience with it. So please forgive me if I''m missing something obvious. I''m in the process of writing my first really "serious" Rails app and would appreciate your advice. I am wondering if there is a standard idiom for including assertions in
2006 Mar 22
6
Relatively easy HTML/XML parsing utilities?
Anyone know of any Ruby modules which can be used to parse an HTML page ? Thanks, Wes -- Posted via http://www.ruby-forum.com/.
2004 Dec 21
1
ssh rsync problem
Hi all, I recently acquired a laptop which brings the grand total of computers at three. 1 laptop, 1 server, 1 desktop. Now the problem I want to solve is the following: Because I work on both my laptop and desktop I would like to sync data in my prj/ directory to my server. So when I logon I sync my data from to server to the computer I currently working on and when I logoff I sync the data
2011 Feb 25
7
Rspec2 for rails 2.3.8?
Hi experts, I picked up a copy of the rspec book and wrote some tests in spec/lib and spec/models for my Rails 2.3.8 code. I was using rspec 2.5.1, rspec-core 2.5.0, rspec-expectations 2.5.0 et. al. But I realised that the rspec-rails version I am using is meant for Rails3. Which version of rspec-rails should I use for Rails 2.3.8? Best, Radhesh -- Posted via http://www.ruby-forum.com/.
2006 Jun 09
2
blank division after update
Hello all, Im having a slight problem with my website. I have a division that is updated using a link_to_remote call. Now, inside the view I can put plain text and everything is fine. However, if I try to pass a variable from the controller to the view it does not work. For example I can have this as the controller: def show_news @testvariable = "shizzlenitboo" end And
2006 Mar 13
3
adding new validates_foo to the models
I was thinking of adding some new validates_foo to my models. How could I create these so that they are reusable in my other apps. Would these need to be plugins? I''m not sure how to go about creating these. Charlie Bowman http://www.recentrambles.com -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Sep 20
15
Why Rails + mongrel_cluster + load balancing doesn''t work for us and the beginning of a solution
We have been searching for a Rails deployment architecture which works for us for some time. We''ve recently moved from Apache 1.3 + FastCGI to Apache 2.2 + mod_proxy_balancer + mongrel_cluster, and it''s a significant improvement. But it still exhibits serious performance problems. We have the beginnings of a fix that we would like to share. To illustrate the problem, imagine a
2018 May 03
2
Getting --delete to work, simply
rsync version 3.1.2 protocol version 31 I've run into an issue using rsync on my QNAP NAS. I've installed Entware-ng on the NAS so that I can install better versions of programs, rsync being one of them. But, I've run into an issue wqith using the --delete option, as it has problems using wildcards. Initially a backup script looked like: #!/bin/sh for d in
2006 Feb 04
2
Associations oddity
Can anyone explain this oddity to me? Given two classes as follows: class Question < ActiveRecord::Base belongs_to :category end class Category < ActiveRecord::Base has_many :questions end I get the following: >> q = Question.find 6789 => #<Question:0x37e9e70 @attributes={"id"=>"6789",