search for: infoart

Displaying 20 results from an estimated 21 matches for "infoart".

Did you mean: infoarts
2006 Nov 20
1
Getting started with ActiveMerchant & new Ecommerce book
Hi there I''ve got a copy of the ''Beginning Ruby on Rails Ecommerce'' book and am trying to integrate ActiveMerchant into my app. My order.rb file has the line: ''include ActiveMerchant::Billing'' per the book. My Order model also has, amongst other things, the following validation: '' validates_inclusion_of :billing_country, :in =>
2006 Jul 21
3
Credit card processing through Australian gateways (eway etc)
Hi there Has anyone out there embarked on credit card processing in a Rails app through Australian gateways such as eway? I''m aware of Payment and ActiveMerchant, but neither support Australian gateways. It''s a little beyond me right now to hack these to work with eway. Any clues would be appreciated here. Richard Sandilands
2006 Aug 06
2
assert_difference gives undefined method error in unit tests
Hi there Am hitting undefined method errors for ''assert_difference'' in my unit tests under Rails 1.1.4 What could I be missing? Richard Sandilands
2006 Aug 02
3
Data relationships for e-commerce: users, orders, addresses
Hi there I''m in the process of developing an e-commerce Rails app but am getting a little stuck on what models I should be working with on the order/checkout side of things. The app requires users to be registered and authenticated to checkout. So I already have a User model and an Order model (which belongs to a User). The Order model is largely similar to that used in the Agile Rails
2007 Mar 27
4
Gruff with PDF::Writer
Hello all Has anyone managed to embed gruff graphs into a PDF document using pdf::writer? The easy way (as far as I can see) would be to just save the gruff graph as a temporary file then read that file in pdf::writer. I was wondering if anyone had managed to get them working together directly? RJ -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~
2006 Aug 10
0
Consolidating error_messages_for for multiple objects
Hi there I have a form that saves a user and an address, which are seperate objects. A user has_many addresses. How to display error messages for the adddress object which gets saved via the same html form? I''m getting all my validation errors for the user object, but no detailed messages for the address object despite putting error_messages_for :address in my view.
2006 Aug 17
2
Weird issue with params from form for one user
Hi there I have an online survey app built in Rails. I''ve just encountered an odd error where only one user is hitting application errors. All other users are fine. >From the log, it seems that no form params are being sent back from a form, which is comprised of radio buttons. None of the params from the radio buttons are getting back to the controller. But the controller name and
2006 Nov 04
0
Check_box woes
I have a User model and an Address model. A user has_many addresses, and an address belongs_to a user. An address object for a user could be a billing, shipping or marketing address. The way I''m tracking this is via the user attributes: billing_adress_id, marketing_address_id and shipping_address_id in the user table, which holds the relevant address id. But in my form that allows a
2006 Nov 04
0
Minimagick issue writing resized file
Hi there I have a helper method in my Rails app that uses Minimagick as a plugin. All is fine except for the write step where I attempt to write the resized file to another directory. I get the error: "undefined method `to_str'' for #<Array:0x25221e8>" Here''s my resizing method: def display_thumb(product_id) # glob through images/books/thumbs dir to find
2006 Nov 04
0
Functional test issue for testing newbie
Hi there I''m having difficulty succesfully updating attributes via a post request in a functional test. Here''s some pastes: ###################################### # account_controller.rb def edit_details @user = User.find(self.current_user.id) return unless request.post? if @user.update_attributes(params[:user]) flash[:notice_good] = ''Your account details
2006 Jul 25
2
Shovel/TextDrive error: missing SSHAgent.socket
Hi there When running the initial ''rake remote:exec ACTION=setup_lighty'' command I get this error: ''No such file or directory - /tmp/501/nl.uu.phil.SSHAgent.socket'' Any clues would be appreciated. Richard Sandilands
2006 May 17
0
Problem with ''require xmlsimple'' in vendor code
Hi there I''m trying to "require ''xmlsimple''" in some code that lives in vendor/ I''ve installed the xml-simple gem, and can confirm this at the command line with ''gem list --local'' which shows I have v.1.0.8 of the gem. However, when I start up lighttpd I get this: /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
2006 May 22
0
RubyGem version error when running rake
All of a sudden I''m getting the following error when running any rake tasks: "RubyGem version error: activesupport(1.3.1.4342 not = 1.3.1)" It started happening after doing an update of my gems and installing the Capistrano gem. Any clues? I''ve googled around with no success. Richard S
2007 Jan 14
2
rspec and set_table_name?
Hi there I have a Value class in my Rails app; however ''values'' is a reserved word in MySQL so in my value.rb file, I''ve declared set_table_name as ''vals''. However, in setting up my specs for this model, I''m hitting errors that seem to be resulting from rspec not seeing the set_table_name declaration in my model file. For instance,
2005 Sep 21
0
Basic pagination question
Hi there I have a class method defined in my Product Model, ''featured_items'', which returns a recordset from the products table based on certain find conditions. I simply want to paginate this recordset, not the whole products table, using the paginate helper. After reading the Rails docs, I''m still struggling to work out how, in my ''list'' view, to
2006 Nov 07
0
Remote migration problem: uninitialized constant Enum
When I run ''rake remote:migrate'' teh task fails with the error: ''uninitialized constant Enum'' Other rake remote tasks including rake deploy, update_code etc all work fine. I get the same error whether I run ''rake remote:migrate'' from my local machine or when i run ''rake RAILS_ENV=production migrate'' in the root of my
2006 Nov 04
0
Ez_where question
Hi there I''m playing with the ez_where plugin but am having trouble formulating a query. Let''s say that if my params[:search_terms] come back as "Ruby Rails", then I want to search for all books that have Ruby and/or Rails in the title. So how best to set up my ez_where conditions so that book.title is LIKE %Ruby% and also LIKE %Rails% ? Any clues appreciated.
2006 Nov 04
0
Model.delete_all vs Model.destroy_all in a habtm
Hi there I have an habtm association between 2 Models. I regularly have to truncate the table on one side of the relationship and repopulate the table with a fresh csv file. I notice that f I do Model.delete_all, none of the records in my habtm join table get deleted, whereas if I use destroy_all they do. However, the overhead of using destroy_all is too great. For the amount of records I have
2006 Aug 07
1
''Remember me'' in acts_as_authenticated troubles
Hi there I''m having trouble getting the ''remember me'' functionality going in acts_as_authenticated. The issue seems to be that the login_from_cookie method is using only the first 60 characters of the remember_token string in the database, whereas the string in the db is 75 characters long. I can see in my dev log that login_from_cookie is trying to find the user but
2006 Jun 12
2
Validating a non-object attribute in a form via checkbox?
Hi there A user can place an ad with various attributes via a form; however, I want the user to check a box signifying that they''ve read the terms and conditions for use of the site. So the ''terms'' is not an attribute of the Advertisement model. I could check that the user has ticked the box in my controller but would like to bundle this up with the validation