Displaying 12 results from an estimated 12 matches for "fqaf1spe7dawxeb2tnkyrg".
2012 Dec 05
0
Action Mailer 3.2.9 retruns duplicates in deliveries array
...the
ActionMailer::Base.deliveries array. However, I am getting two of the
test email messages placed in the deliveries array instead of just one.
For example:
''[
#<Mail::Message:38151600,
Multipart: false,
Headers:
<Date: Wed, 05 Dec 2012 16:05:16 -0500>,
<From: forex.control-fqAF1SpE7daWxEb2tNKyrg@public.gmane.org>,
<To: forex.test-fqAF1SpE7daWxEb2tNKyrg@public.gmane.org>,
<Message-ID:
<50bfb70ca7ea9_78aa14427fc856-Xg3uWU4dJZByRN6TQuuFFj0xfz0Twc0EoICukQnxbdvwwNc1L8eyVw@public.gmane.org>>,
<Subject: [ForEx] 2012-12-05 - Foreign Exchange Rates Central Bank
Update Notice...
2012 Nov 12
3
Updating objects in arrays
Perhaps this is a Rails issue. However, I need to first determine whether
I simply am missing something about updating members of an array.
I have an array of 10 ActiveRecord objects. I wish to iterate over the
array and update an attribute. When I do this the underlying table row
changes but the object in the array frequently does not. For example:
count = 0
current_entries.each do
2012 Nov 13
4
Proper use of the where method om ActiveRecord.
I am trying to determine what is going on with the following code:
In AR
def self.all_billables
where( :is_billed => false )
end
returns 2 records.
def self.all_billables
where( "is_billed" => false )
end
also returns 2 records.
In sqlite3
sqlite> select * from tests where ( "is_billed" = ''false'' );
returns 2 records.
However, if I use
2011 Nov 07
2
Problem with Rails3.1.1 in mass_assignment_authorizer
By accident I had Rails-3.1.1 installed by bundler. However, when I
discovered this mishap during my feature run I encountered this error
in many places:
wrong number of arguments (1 for 0) (ArgumentError)
/home/byrnejb/.rvm/gems/ruby-1.8.7-p352/gems/activemodel-3.1.1/
lib/active_model/mass_assignment_security.rb:209:in
`mass_assignment_authorizer''
2008 Apr 28
16
GiT and Edge/Trunk Rails
I have a sub-application project that I had previously converted to edge
rails under svn. Originally, vendor/rails was set up with svn:externals
so that an svn update at the project''s root would pull the latest trunk
along with all the other updates. Since Rails has moved to GiT and
depreciated svn I decided to remove the svn:externals reference for
vendor/rails and reinstall trunk using
2005 Jul 29
3
More issues with Rails Book Cart tutorial.
I am presently trying to get the cart section (chapter 8.) working
and after following the instructions as carefully as I can determine
I am nonetheless getting the following errors:
URL=http://localhost:3000/store/add_to_cart/10
NameError in Store#add_to_cart
undefined local variable or method `parms'' for
#<StoreController:0x376ee60>
2009 Nov 30
0
Input text value retrieve id value
In the view, when add a new row to a join table (A
has_many :bs :through :zs). if one wishes to display and require the
name value instead of the id value in the form partial, what is the
correct procedure to follow?
The examples that I see usually provide a drop down selector that is
pre-populated but I require the ability to simply enter the name
value, return to the controller, look up the
2010 Feb 19
0
You are being redirected
I have done something to my application controller so that instead of
the redirected page itself am now seeing this as a response:
<html><body>You are being <a href="http://www.example.com/
welcome">redirected</a>.</body></html>
I do not know why this is happening or what I did to trigger this
behaviour. The API does not give me any clues as to
2010 Apr 07
0
Need help with ActiveWarehouse-ETL-0.9.1 PG connection problem
I am trying to load conversion data into a postgresql database using
activewarehouse-etl. I can create a flat file output from the
conversion data without problem. However, when I try to load into the
table using the information contained in config/database.yml I see
this error:
/usr/lib64/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/
base.rb:1959:in `method_missing'':
2012 Feb 27
0
Rails 3.1 and SQLite3
I am getting this message when running my tests against RoR-3.1
.rvm/gems/ruby-1.8.7-p352/gems/activerecord-3.1.1/lib/active_record/
connection_adapters/abstract/connection_specification.rb:71:in
`establish_connection'': Please install the sqlite3 adapter: `gem
install activerecord-sqlite3-adapter` (sqlite3 is not part of the
bundle. Add it to Gemfile.)
However, I already have this in my
2013 Nov 20
0
Railties-4.0.1 - what happened to rake tmp:clear
MRI-2.0.0p247
Railties-4.0.1
We have a standalone Rails-3.2.15 based application that we are upgrading
to 4.0.1. It uses only the following components of Rails-4.0.1:
* actionmailer (4.0.1)
* actionpack (4.0.1)
* activemodel (4.0.1)
* activerecord (4.0.1)
* activesupport (4.0.1)
* arel (4.0.1)
* railties (4.0.1)
Bundler has a path setting which is:
path
Set for your local app
2010 Jan 21
2
nested forms and attr_accessable
Rails 2.3.5
I am working on a nested form that assigns roles to users through a
table called clearances. I have attr_acessable turned off globally in
an initializer:
ActiveRecord::Base.send(:attr_accessible, nil)
I have this set in clearance.rb
attr_accessible(:description,
:effective_from,
:role_id,
:superceded_after,
:user_id)
And this is what params looks like after the