Displaying 20 results from an estimated 10000 matches similar to: "rails application working, rake tasks not"
2008 Oct 28
0
oracle_enhanced adapter 'uninitialized constant' error
Hi,
Can any one help me? I''m using Ubuntu and trying to connect to an oracle
database using oracle_enhanced adapter connection, but keeps getting
following error:
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.
rb:275:in `load_missing_constant'': uninitialized constant
ActiveRecord::Connecti
onAdapters::OracleEnhancedAdapter (NameError)
2010 Feb 24
4
"Sequence does not exist" for joined model
Hello all,
I''m in my 5th month on Ruby on Rails and still learning.
I have an application that works fine in sqlite3 and then the boss says
he wants it migrated to Oracle.
Now, I know very little about Oracle, enough to get into trouble.
When I did the migration everything went haywire. Well, I''ve refactored
several problems and now I have another.
I have two models with a
2011 Mar 11
2
Problem with Redmine
I am having a problem getting Redmine to run with Oracle (11.2) backend.
I get this error (below) because Oracle table names are limited to 30
characters. Does anyone around here know of a fix or workaround? I''m
wondering if I can simple change the table name, or if that will break
the application.
When doing a db migrate to an Oracle db this creates the error below.
I''m so
2009 Sep 11
0
oracle_enhanced problem connection
Hello,
I have a problem connecting to the development Oracle database but not
to production, despite using the same credentials and connecting to the
same database.
The database is a legacy app that needs a new enhanced front end, so I''m
not designing a new database just interacting with the existing one.
Here is my database.yml:
development:
adapter: oracle_enhanced
user: user
2010 Dec 15
3
ORA-12514: TNS:listener d oes not currently know of service requested in connect descriptor (OCIEr
Hi I am a new to ROR and learning this framework from various tutorials.
I have my new application and had the rails generate scaffold get going
but after this when I first ran the rake db:migrate I got this ERROR!
ORA-12514:
TNS:listener d
oes not currently know of service requested in connect descriptor
(OCIError)
I''m using database which is on a server and have used the tnsnames.ora
2011 Nov 02
3
form_for text_field
I have a form
... html .....
<% form_for @person do |f| %>
... html .....
<%= f.text_field :last_name %>
... html .....
<% end %>
When last_name field of @person doesn''t contains french special symbols
like ''é'', all characters are displayed in the input control
(f.text_field :last_name ).
Else only symbols before french special symbol are
2008 Oct 02
1
acts_as_taggable_on environment issues
Like most people, I''ve got two machines: one for development and one
for production. I''ve done everything I can to make sure the ruby/rails
environments are the same, but of course they''re not identical (I''ll
get into that in a moment). The error that I''m getting happens when I
call a method in a background task controller on the production
machine; I
2010 May 25
1
rake rails:freeze:gems bug in rails 2.3.5?
Hi All,
Not sure if this is a bug or expected behavior.
I''ve pasted my log below, but basically the first time that I run
rake rails:freeze:gems, I get action* all unpacked into app/vendor/
rails.....the 2nd time I run it? I only get vendor/railties/*
Something I''ve done wrong?
Thanks,
Dale
---- log -----
~/cygwin/test$ rake rails:freeze:gems
(in C:/Documents and
2008 Nov 12
1
gem ruby-sqlite3 install error
i am tryin' to install ruby-sqlite3 via gem, but it keeps givin' me this
output:
mathilda ~ # gem install sqlite3-ruby
Building native extensions. This could take a while...
ERROR: Error installing sqlite3-ruby:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb install sqlite3-ruby
checking for fdatasync() in -lrt... no
checking for sqlite3.h... no
make
make: *** No
2012 Jun 14
1
Cucumber/RSpec ::: Capybara? Webrat What am I using??
Hey everybody
I''m currently reading through the Pragmatic Programmers RSpec book, and
I really enjoy it.
But I’m facing some problems because of the fact that the book is
already some years old, I guess. I have installed rvm and use Ruby
1.9.3, and I didn’t really get some Rails code examples to work
properly, so I tried it with a 1.8.7 installation, but there I had some
other problems
2009 Jun 10
5
uninitialized constant ActiveSupport::Cache (NameError)
Hi
After having updated some GEMS I get `load_missing_constant'':
uninitialized constant ActiveSupport::Cache (NameError) on starting
the server of a freshly generated rails project.
Before, I already had Rails 2.3.2 projects succesfully running, now
all of them generate this error.
These are my GEMS:
actionmailer (2.3.2, 2.2.2, 2.1.2, 2.1.1, 2.1.0)
actionpack (2.3.2, 2.2.2, 2.1.2,
2007 Jun 09
1
Rake test tasks only work with --trace
So this has left me completely confused. I''m trying to get the test
suite going on an existing app, but things going a little crazy.
In the application directory if I do ''rake'' or ''rake test'' I get:
rake aborted!
Lost connection to MySQL server during query
However if I do ''rake test:units'' or ''rake
2008 Sep 28
4
ActiveResource and InvalidAuthenticityToken exception
Hi,
I have a Rails 2.1.1 web app, and a Rails 2.1.1 app acting as a client
by using ActiveResource.
From the client, I can find, create, and update resources owned by the
web app.
However, I can not delete any. Calling the .destroy method in
ActiveResource generates a 422 from the web app.
Not sure why this would be the case, since I thought
protect_from_forgery only protects HTML and JS
2009 May 06
0
OCI Library Initialization Error
I am attempting to connect to ORACLE11g however i am getting the
following error:
"OCI Library Initialization Error"
IT always errors on OCIENV.init(). I cant see anything wrong on the ENV
configurations.
Has anyone had this problem, or any suggestions on where i should look
for anwers?
I am using the following gems:
ruby-oci8 (1.0.4)
activerecord-oracle-adapter (1.0.0.9250)
2008 Jan 18
5
How do I pass form values from POST controller specs?
Hi there
I just started my first Merb app and I''m running into some weird
things in Specs. When I do:
describe "create action" do
it "should create a new project" do
project_params = {:name => ''bekkunin''}
Project.should_receive(:create).with(project_params)
controller, action = post(''/projects'', :project
2014 May 06
0
Failed "bundle install" due to libpq-fe.h
I tried to run the command "bundle install" as follow and then I got this
error:
# bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
Fetching gem metadata from https://rubygems.org/........
Fetching additional metadata from
2011 Sep 02
3
problems with oracle xe server connection
i''m working on ubuntu 11.04; i need to create some rails application
with oracle database on local computer.
i installed: ruby 1.9.2, rails 3.1, oracle 10g XE, rubu-oci8 2.0.6,
gem ''activerecord-oracle_enhanced-adapter'', create database user named
''orak'' with password ''orakpass'' through 127.0.0.1:8080/apex, i maked
new application
2009 Jul 20
9
rake error
When I run rake test:units I get this error:
292 tests, 350 assertions, 2 failures, 13 errors
rake aborted!
Command failed with status (1): [/usr/local/bin/ruby -I"lib:test" "/
usr/loc...]
This error just showed up yesterday --- I have no idea how I caused
it. Here is my gem list in case that helps:
actionmailer (2.3.2, 2.2.2)
actionpack (2.3.2, 2.2.2)
activerecord (2.3.2, 2.2.2)
2010 Apr 15
1
Problems with rake
I receive an error when I try to create or setup database using rake
command. Rake is installed.
Error: bash: /opt/local/bin/rake: /opt/local/bin/ruby: bad
interpreter: No such file or directory. Is it not in the path but how
come I can to gem list show the gems?
Please help
gem list
*** LOCAL GEMS ***
actionmailer (2.3.5, 2.2.2, 1.3.6)
actionpack (2.3.5, 2.2.2, 1.13.6)
actionwebservice
2009 Oct 20
1
OCIError (ORA-01017: invalid username/password; login denied
We''re trying to deploy our system on a separate server and have run into
nothing but trouble; specifically I get the error mentioned in the
subject. The username/password combo is correct (I verified it via
SQL+). Manually running script/server works fine in production or
development mode. Heck, running script/console also works fine. It''s
just that when it automatically