similar to: self.where('section = ?', '%:search_item%')

Displaying 20 results from an estimated 1000 matches similar to: "self.where('section = ?', '%:search_item%')"

2010 Oct 30
2
ArgumentError (wrong number of arguments (2 for 0)):
Can anyone tell me why I am getting this error using rails3 and Ruby1.9.2:- Completed 200 OK in 212313ms (Views: 2.8ms | ActiveRecord: 0.0ms) Homepage Load (0.2ms) SELECT "homepages".* FROM "homepages" WHERE ("homepages"."section" = ''%Gar%'') ArgumentError (wrong number of arguments (2 for 0)):
2010 Oct 25
2
form_tag with remote=>true Error during failsafe response:
I am trying to find out why form_tag with remote => true is not sending an ajax response and only sending HTML. I have started a basic Rails App with two pages and am following the Railscast 205 UJS example. Every time I include:- <%= form_tag homepages_path, :method => ''get'', remote => true do %> I get from the server(WEBrick):- (Ruby 1.9.2 and Rails 3) A 500
2010 Sep 20
5
Update to website not printing special Characters
I thought you might be interested in how far I have got with solving my problem with MySql(via phpMyAdmin) to website character_set problems. I thought I had solved the problem when my characters on my website started showing the special characters. This was a partial success though. When I went back to phpMyAdmin and entered new text the problem was the same, but reversed. What now happens is
2010 Oct 26
1
S4 methods for rbind()
Hello. I am trying to write an S4 method for rbind(). I have a class of objects called 'mdm', and I want to be able to rbind() them to one another. I do not want the method for rbind() to coerce anything to an mdm object. I want rbind(x1,x2,x1,x2) to work as expected [ie rbind() should take any number of arguments]. This is what I have so far: setGeneric(".rbind_pair",
2009 Jun 10
1
Unable to load package:lme4 [ Ubuntu 9.04 ]
Hi folks, When I try to load package 'lme4' on my Linux box (64-bit Ubuntu 9.04), I get the following error: ------------------------------------- > library(lme4) Error in dyn.load(file, DLLpath = DLLpath, ...) : function 'cholmod_start' not provided by package 'Matrix' Error: package/namespace load failed for 'lme4' ------------------------------------ I
2010 Nov 10
1
S4 package warning
Hello everyone. R-2.12.0, suse linux 11.3. I am debugging a package that uses S4 methods and R CMD check gives the following warning: > Warning in methods::findMethods(g, env) : > non-generic function 'mdm' given to findMethods() > See the information on DESCRIPTION files in the chapter 'Creating R > packages' of the 'Writing R Extensions' manual. I
2009 Dec 03
1
S4 and head() problems
Hi I am having difficulty defining an S4 method for head() and tail(). I can't quite provide minimal self-contained code because the problem appears to require the whole corpus of my package; and there also appears to be a difference between sourcing the lines directly, and having them installed in a package. The lines in question (I think) are: setClass("mdm",
2011 Jul 11
36
has_many and belongs_to association
Hi , I want to test the one below but I got the problem belongs_to :name, :class_name => "Phrase", :foreign_key => "name" in my test context "test"do should have_many :phrases end in language.rb belongs_to :name, :class_name => "Phrase", :foreign_key => "name" error is 1) Failure: test: check has_many and belongs_to
2009 Jun 19
1
using garchFit() to fit ARMA+GARCH model with exogeneous variables
Hello - Here's what I'm trying to do. I want to fit a time series y with ARMA(1,1) + GARCH(1,1), there are also an exogeneous variable x which I wish to include, so the whole equation looks like: y_t - \phi y_{t-1} = \sigma_t \epsilon_t + \theta \sigma_{t-1} \epsilon_{t-1} + c x_t where \epsilon_t are i.i.d. random variables \sigma_t^2 = omega + \alpha \sigma_{t-1}^2 + \beta
2010 Mar 17
1
Reg GARCH+ARIMA
Hi, Although my doubt is pretty,as i m not from stats background i am not sure how to proceed on this. Currently i am doing a forecasting.I used ARIMA to forecast and time series was volatile i used garchFit for residuals. How to use the output of Garch to correct the forecasted values from ARIMA. Here is my code: ###delta is the data fit<-arima(delta,order=c(2,,0,1)) fit.res <-
2005 Sep 11
3
David Choo/eServices/eSpore is overseas
I will be out of the office starting 12/09/2005 and will not return until 16/09/2005. Dear Sir / Mdm, I'm currently on course and are not in office. During this period of time, I have minimal access to internet and email cccess. As such, I might not be able to reply to your queries promptly. I apologise for the inconvenience caused. In the meantime, for any technical assitance, please
2007 Oct 22
13
An error on edge at -r 2767
Morning, Having done an svn up this morning all my specs are broken with the following: SQLite3::SQLException in ServiceConfig with minimum set of valid parameters should return nil for the service path'' SQL logic error or missing database C:/development/sandbox/prototypes/user_admin_client/config/../vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/rails_example.rb:17:in
2012 Feb 06
4
[Bug 1977] New: ProxyCommand seems to no execute shell commands
https://bugzilla.mindrot.org/show_bug.cgi?id=1977 Bug #: 1977 Summary: ProxyCommand seems to no execute shell commands Classification: Unclassified Product: Portable OpenSSH Version: 5.9p1 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: ssh
2012 Mar 17
8
Agile web development with rails 4th edition adding sizes to the product
Hi I am going through the Agile web development with rails 4th edition book and I am trying to modify the depot application to allow the customer to select a size before purchasing a product. What and how would I have to modify the depot app to do this? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2009 Aug 18
1
Cisco IAD's
To Members, I currently looking for someone who can configure Cisco IAD's Ie.. IAD 2431 And yes we are more than willing to pay for the service. If interested please drop me an email mdm at openaccessinc.com<mailto:mdm at openaccessinc.com> Michael DiMartino | Director of IT | Open Access, Inc. 115 Bi County Blvd | Farmingdale, NY 11735 631.227.1034| 631.694.6730 FAX |631.988.6060
2008 Mar 29
10
create new clientconfigs database
Hi, I''m upgrading from 23.2 to the latest and have "dbmigrate = true" in my config. When I try to run puppetd, I''m getting: Could not migrate database: SQLite3::SQLException: no such table: schema_info: SELECT version FROM schema_info I''m perfectly blowing away my old db (by deleting /var/lib/puppet/ state/clientconfigs.sqlite3 ?), but I haven''t
2007 Dec 18
5
resource collection error
I''m seeing these in my logs on my puppetmaster: puppetmasterd[4111]: Could not store configs: SQLite3::SQLException: SQL logic error or missing database: DELETE FROM fact_values WHERE "id" = 8 currently this is 0.24.0 relect from some previously collected resource that wasn''t cleaned up? upgrade issue? nothing to worry about? that''s the only
2011 Apr 05
4
Rails 3.0.5 gives SQLite3::SQLException for the same code that works on 3.0.3
Hello, I recently updated Rails to 3.0.5. The very same code that worked on 3.0.3 now gives error. The code is: def kategorialista Kategoria.where(:elfogadva => TRUE).order("nev").collect {|s| [s.nev, s.sefuri]} end It is in application_controller.rb with helper_method :kategorialista The error it gives on 3.0.5: SQLite3::SQLException: no such table: kategoria: SELECT
2006 Mar 04
5
SQlite3 hoopup issues on mac os x
friends of the int-arweb. what does this mean: (in bold) ActiveRecord::StatementInvalid in Contact#create SQLite3::SQLException: SQL logic error or missing database: INSERT INTO contacts Context: this happened after I had finished setting up RoR as per the tutorial at http://maczealots.com/tutorials/ruby-on-rails/ the database, is like, there. is there a nice ruby command like deal to
2011 Jul 20
4
Setup database on new clone
I''ve just cloned my rails app onto another PC, and I''m having a problem getting the database set up. I''ve tried rake db:migrate, then db:create and also db:reset, but I keep getting an SQLException "no such table". It seems this is due to a line in an initializer which accesses one of my tables. Why do the db:* tasks run the initializers ? Do I need to move