Displaying 20 results from an estimated 5000 matches similar to: "using pg on snow leopard"
2012 Jul 25
3
rails scope without raw sql
Hi, I''ve been stung when deploying a rails app to heroku, and I''m fairly
confident the problem is the difference between my local db sqlite3, and
the heroku standard free shared db which is postgres(i think).
I have a scope in my model that looks like this
scope :not_archived, :conditions => [''application_state != "archived"'']
The idea is I want
2013 Oct 20
3
Looking for RoR friends
This is quiet off topic but I am looking for friends from this group. Reply
me :)
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to
2010 Oct 23
4
Could not find 'sqlite3-ruby' error in Ubuntu
Hi all, please help me:
First time I totally had to delete all ruby and Rails because of this
problem. How to solve it well?
The message is:
*Could not find gem ''sqlite3-ruby (>= 0, runtime)'' in any of the gem
sources.*
*Try running `bundle install`*
I have *Ubuntu* Linux.
ruby -v = *1.9.2p0*
gem -v = *1.3.7*
rails -v = error message again, 2 hours ago it was "rails
2013 Sep 15
1
Why does Rails convert scopes to downcase
I found a strange behavior in Rails 4 with scopes when I use postgres.
I have a Object with saleStartDate and saleEndDate attributes.
scope :active, -> { where(isActivate: true) }
> scope :activeDate, -> { active.where("? BETWEEN saleStartDate AND
> saleEndDate", Date.today)}
When I use sqlite, all works when I want to get the object with the
activeDate scope.
When
2012 Mar 07
6
Can't find the PostgreSQL client library (libpq)
When i try it start my ruby server i get a error that looks like
rails server Could not find pg-0.12.2 in any of the sources
Run `bundle install` to install missing gems.
I dont know what to do
Thanks for all the help
--
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
2012 Sep 17
5
Biometrics fingerprint scanner in RoR? Is it possible? and how?
I''m a graduating student of IT right now and in a couple of months, we''ll
be starting on a new project in the University. My group and I decided to
create a voting system which requires Fingerprint scanner to identify the
voters and make the voting process more secured. I still don''t know how
biometrics fingerprint scanner works exactly and I''ve just started
2011 Nov 04
5
Beating the Top-Posting Dead Horse
On Fri, Nov 4, 2011 at 12:44, BeeRich <beerich-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> As for top posting, that is an old school habit.
Er, no it isn''t. You young punks wouldn''t know old-school if it bit
you in the diapers! Now get off my lawn! ;-)
Seriously though, REAL old-school quoting is interleaved point by
point, with anything irrelevant trimmed
2012 Feb 07
10
Ruby Developer position
Please let me know your interest in following.
Location: Columbia, SC
Duration: 12 months+
Rate: $65/hr 1099/c2c
Required Skills:
RUBY, RAILS, GIT, MYSQL, CUCUMBER, RSPEC, JQUERY, EXCELLENT ORAL AND WRITTEN
COMMUNICATION SKILLS, TEST-DRIVEN DEVELOPMENT, LINUX, OS X, JSON, COMMAND
LINE, SQL, SSH, HAML, SCSS
Thanks
Sandeep
Sandeep Jain
Software People Inc.
www.softwarepeople.us
2010 Jun 15
11
mysql gem install not happening on Mac OS Leopard - any inputs at all??
Hello all,
Ive got Mac OS X Leopard (10.5.8), ruby 1.8.6 (2009-06-08 patchlevel
369) [universal-darwin9.0] and mysql 5.0.67 installed and working fine
with Rails 2.1.0.
"which ruby" outputs /usr/bin/ruby. I can see the mysql symlink in /
usr/local/mysql. I can also see the mysql-5.0.67-osx10.5-x86 folder
in /usr/local .
Im trying to upgrade my Rails apps to 2.3.5 but when i try to
2012 Apr 02
10
Pessimistic locking locks the entire table?
Hi guys,
I must be missing something obvious with pessimistic locking. Here is
what I do (Rails 2.3, mySQL):
In my Foo model:
def test
Foo.transaction do
lock = UpdateLockForFoo.find_by_foo_id(self.id, :lock => true)
sleep 30
end
end
For each Foo model, I have an UpdateLockForFoo. This "lock" needs to
be acquired before doing any changes to Foo.
I believe it works,
2013 Oct 07
3
Get current url
Hi friends,
i need current url in rails environment file.
i can get current url in conroller by the below command.
request.env[''HTTP_HOST'']
and now i want get current url in environment.rb file or intializer folder
files
Regards,
Daya.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from
2008 Sep 14
2
Postgres adapter issues with Rails 2.1: ruby-pg is the answer!
While upgrading Rails 2.0.2 sites to Rails 2.1.1, I encountered a
weird postgres adapter problem. Although the old postgresql adapter
(aka ruby-postgres) works fine with Rails 2.1.1 on my Mac dev box
(running PG 8.2.6) and also works fine with Rails 2.0.2 apps on a
Debian etch staging server (running PG 8.2.1), this error occurs when
trying to cap deploy 2.1.1 apps on the Debian box:
2011 Aug 03
2
FYI: Heroku Cedar, pg, openssl, omniauth, troubles and a solution
Hi guys,
I found a really nasty issue that affects people running on Heroku''s cedar
stack. We are using Rails 3.1.rc5, pg 11, omniauth 2.6. Ruby is 1.9.2.180p
Basically there is an incompatibility between the http, pg and OpenSSL
modules which segfaults when making https calls, for example to log in
through twitter. Now pg is a required gem when using Heroku cedar stack so
leaving that
2013 Feb 04
3
kill webrick process on OSX Lion {localhost:3000}
Hi Folks,
I have a simple question
When I have to stop the webrick server on my OSX Lion I use the follow
keyboard button:
Ctrl + Z
but after that I launch the command: "ps"
the webrick server is always active I have to kill the process with:
kill -9 [ID PROCESS]
exist a command to kill instantly the webrick server?
thanks,
C
--
Posted via http://www.ruby-forum.com/.
--
You
2012 Jun 01
4
Is there a ftp crawler in ruby on rails?
Hi,
I''m a newbie to ROR. I wanted to write some code which can help me to
list and then index all the paths on a remote server. Is there a ftp
server crawler in ruby?
Thanks,
Narayana
--
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
2012 Apr 23
4
Multiple regex match in the same line
Hi,
Could somebody please show me a way to find, and display multiple
regex matches in the same line?
Like this:
test_string = "I shot the Sherrif but I didn''t shot the Deputy."
# The word I would like to find is the "shot" and displayed like
"shotshot" or like each match could go into a new #line like:
"shot"
"shot"
# Some ways I
2012 Dec 04
3
Unable to install pg gem file on CENT OS
please help me in this... I am unable to install pg gem file
[root@vdimc04 ~]# gem install pg -v ''0.12.0''
/usr/local/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>'':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
Fetching: rake-compiler-0.8.1.gem (100%)
Fetching:
2011 Oct 26
4
Help wanted: pg vs. postgres-pr gems
Hi all,
I installed Rails 3.0 + PostgreSQL 8.4.
Installed the gem postgre-pr
I added " gem ''postgres-pr'' " to my Gemfile
I defined my database.yml with:
# PostgreSQL 8.4
development:
adapter: postgresql
encoding: unicode
database: testdb
pool: 5
username: test
password: ******
I run rails server which starts, but application environment returns
this error:
PG gem behaves strange. It requires live DB connection to only generate a model. How to turn it off?
2013 May 01
3
PG gem behaves strange. It requires live DB connection to only generate a model. How to turn it off?
I used MySQL as a backend before. Now I had to move to PG since Heroku
doesn''t have MySQL and forces everyone to use their Heroku-PG database.
But PG virsion of Rails works diffidently. I cannot generate a model
without PG server running:
>> C:\ruby\Heroku\App>rails generate model Products
>>
>> C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activerecord-
2011 Nov 02
1
current deployment options
- Have been away from RoR development for a couple of years.
- Will be doing a new project soon, starting with RoR 3.1.
- This site will be hosted on a dedicated user-controlled server inside their intranet, so this question is not about hosting services.
- Expect about 100,000 page views a day, with a bit more spikiness than normal around some shift changes, so provisioning as if for 500,000