Displaying 20 results from an estimated 20000 matches similar to: "Rails and PostgreSQL ???"
2010 Jun 09
4
db connection issues in production but not in dev mode
We have an application Ruby on rails, which fires a number of queries to
the database. I Suspect it is connection timeout error or something
When we run the application in development mode, it works as expected.
However when we switch to Production mode, we get the following error in
Postgre console:
--------------------------
LOG: could not receive data from client: No connection could be made
2010 Jul 22
13
Sqlite3 busy and yet server has no load nor concurrency
Hi,
Strange behavior here. On my dev machine code works, but on the
production machine I get the dreaded:
SQLite3::BusyException: database is locked INSERT INTO "comments" [...]
What kind of bug could yield such behavior? It''s impossible the database
times out, there are no concurrent requests coming in, and the db is
only 150kB. Is there a possible race condition? Caching
2010 Apr 23
4
New to rails - apparently need patch to use PostgreSQL
Help please. My first attempt at Rails, I''m trying to use PostgreSQL
and I''m seeing this error. I''m also new to PostgreSQL, but the
default encoding in PostgreSQL appears to be SQL_ASCII. I''m not sure
if I should try and get the patch or try and change the PostgreSQL
template. Sorry I''m so confused. FWIW, I''ve been a .NET MSSQL
developer
2010 Sep 21
9
Packaging for Rails applications
I am working on a Rails app, for deployment I usually checkout the code from
git repository to the production servers which are running apache with
mod-rails.
But checking out the complete code, I am also checking out the spec and
tests folder, I would like to avoid having test/specs code on my production
servers.
Is there a set way of packaging rails application for deployment ? I am
using
2010 Sep 21
25
Working in install acts_as_commentable, On create, error: "unknown attribute: book_id"
Hello, I''m working to install the acts_as_commentable plugin on my
Rails 3 app.
After adding "acts_as_commentable" to my book model, I then added a
comment form on my book show view:
<% form_for(@comment) do|f| %>
<%= f.hidden_field :book_id %>
<%= f.label :comment %><br />
<%= f.text_area :comment %>
<%= f.submit "Post
2010 Sep 11
10
Having difficulty with threaded comments, using acts_as_tree
I''ve been having problems making threaded comments for the last few
days. Mainly with creating children and displaying the children.
Currently, I have comments shown at the bottom of my articles show view.
The top level comments work, but I do not really know how to implement a
way for users to "reply" to the top level comments and take them to a
form (the comment
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:
2010 Sep 13
13
what I've missed in routes.rb?
In routes.rb I''ve put:
resources :sessions
controller is:
class SessionsController < ApplicationController
def destroy
session[:id] = nil
session.delete(:casfilteruser)
CASClient::Frameworks::Rails::Filter.logout(self)
end
end
In application.html.erb I have:
<%= link_to ''Logout'', session_path(session[:cas_user]), :method => :delete %>
I
2010 Feb 04
6
Fastes database server for...
Hi,
I''m currently building a small rails application that needs to store web
traffic information. Similar to google analytics and clicky. (but
simpler) It needs to store refer domains and visitors. Integration goes
through a small javascript snippet.
My question is: What database server is the fastest and should I use for
this app?
I was thinking about SQLlite.
Thanks for your time,
2010 Sep 15
5
Hide an image in show.html.erb
I have the following "show.html.erb" script, and I get as an output TWO
images since I use a method to draw an image.
How can I HIDE the RESOURCE image?
Thanks.
Here is the script:
<canvas id="line" height="512" width="512">
</canvas>
<p id="notice"><%= notice %></p>
<p>
<b> Name </b>
<%=
2010 Dec 14
5
Build associated model confusion
I''m new to Rails3, and I''m just trying to get one last thing to work
before I call it a night. The situation is the following (please if
the code is horrible, just let me know, still learning):
I want to log a dive. I might have a new location on that dive at
which point I have to create a new Location, and then create the dive.
A dive has_one location. A location has_many
2006 Apr 30
16
postgresql duplicate key violates unique constraint
I have a weird problem with creating a new record when using PostgreSQL.
From inside script/console ...
>> entity = Entity.new
>> entity.first_name = "Foo"
>> entity.last_name = "bar"
>> entity.save
Throws an exception due to the following SQL error: duplicate key
violates unique constraint.
The application was working fine before and suddenly
2010 Dec 12
3
Toto blog date issue - production only, localhost fine
I have this listed in the Toto Issues list on Git and know that it is
affecting one other person and so far no ideas... just want to throw it out
here if anyone else has had the issue or better yet has a fix:
I have a pretty stock instance of Toto. Locally I run it on thin and
everything works. When I push it to heroku, the index loads but on every
article, instead of showing the date in the
2010 May 15
1
Algún chileno interesado en capacitarme en Rails?
No soy del área informática por lo que me ha costado entender Rails
(Se html, css y php (nivel básico) )
Estoy buscando a alguien de Santiago, Chile que esté interesado en
capacitarme (pagado por su puesto)
Gracias
--
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 Sep 27
5
RoR Tutorial : clear password field
Learning Rails following the Rails Tutorial book I have the following
question.
In chapter 8 at the Exercises part they talk about clearing the
password field.
I tried several things to do this, but till now didn''t find the
solution.
Anyone has a tip how to do this?
Thanks in advance
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2010 Jun 10
9
Rails3 beta4 + Ruby 1.9
When I try rails console using Rails3 beta4 and Ruby 1.9.1-p378 I
cannot save a record:
> rails console
Loading development environment (Rails 3.0.0.beta4)
ruby-1.9.1-p378 > g = Game.new
=> #<Game id: nil, player_id: nil, versus_id: nil, finished: nil,
created_at: nil, updated_at: nil>
ruby-1.9.1-p378 > g.save
NameError: undefined method `<=>'' for class
2010 May 12
6
dynamic searchable fields, best practice?
I have a Lexicon model, and I want user to be able to create dynamic
feature to every lexicon.
And I have a complicate search interface that let user search on every
single feature (including the dynamic ones) belonged to Lexicon model.
I could have used a serialized text field to save all the dynamic
information if they are not for searching.
In case I want to let user search on all fields, I
2010 Sep 11
4
Can't install plugins on rails 3.0
Just upgraded one of my apps to Rails 3.0 and I cannot install
plugins. I either get "Plugin not found", or an empty folder.
When I run
rails plugin --verbose install http://github.com/jslag/us-state-select-plugin.git
I get this response:
Plugins will be installed using http
git init
git pull --depth 1 http://github.com/jslag/us-state-select-plugin.git
But all I get is an empty
2010 Dec 06
15
Windows new installation - Always problems
I would like to know if there is a way to ''package'' an application
with all the associated gems and ship it to a new server and having it
to "just work" in a Windows environment.
Although I have never done it I know that Rails can be frozen into the
application. I am wondering if I can do the same thing with other
gems. I have found this
2010 Sep 22
8
ActiveScaffold and partials
I was thinking of doing partials as I did in the simple Rails
application I worked on today.
But, since I''m using ActiveScaffold, I didn''t find any *.html.erb in the
views folder of the Rails application that I need to make my partials!
How can I work with partials in ActiveScaffold?
Thanks.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you