Displaying 14 results from an estimated 14 matches for "danharp".
Did you mean:
dansharp
2006 Mar 26
3
Using a Gem in your App without installing to the system
Does anyone know how to use a gem without installing it to the rails
installation? For example, I can download the Money gem package from
http://dist.leetsoft.com/ but if I don''t have the ability to install a
gem at my hosting provider, how can I use the gem in my app?
Cheers,
Dan
2006 Apr 21
5
Simple Question: How to merge SQL results?
Hopefully an easy one, how do I merge two or more SQL query results?
Example:
result1 = find_by_sql(x)
result2 = find_by_sql(y)
What is the best way to merge result1 and result2? I want to be able
to reference the objects as if they were obtained via one query.
Cheers,
Dan
2006 Mar 25
4
Rails PayPal and Currencies other than USD
Has anyone been able to make direct API calls to PayPal in currencies
other than USD? I get an error message "The currency code submitted is
not supported. Check the currency code and try again."
I''m using the PayPal plugin for Rails. I can successfully transact in
USD, but not AUD (Australian Dollars).
Cheers,
Dan
2006 Jul 29
3
Lighttpd Configuration Independent of Hostname or IP
Hopefully someone can help with a bit of lighttpd configuration for
my production rails app in Mac OS X.
I have an application which will be accessed by many different
domains and IP addresses. Examples:
http://crm.local/
http://localhost/
http://192.168.0.49/
http://65.256.120.90/ (fake, but you get the idea, an external
Internet facing IP address)
http://crm.mydomain.net/
2006 Mar 27
15
Go Go Gadget - A Rails ecommerce site released today
I''ve just completed my first Ruby on Rails project, an online store for
electronic gadgets including digital cameras, MP3 players and PDAs.
It''s for Australian shoppers only, but everyone can take a look and
browse through!
http://www.gogogadget.com.au
All feedback, comments, etc are welcome.
Cheers,
Dan
2006 Mar 14
4
Two Customer Types - Best Design Principle?
Hi all,
I''ll do my best to explain this... I have the possibility to have two
customer types in my system:
1. A "mailing list" type: new records are saved when user enters email
address in the mailing list subscription form.
2. A "full" type: new records are saved when the user buys something and
provides all their billing/shipping details, etc.
Model:
-
2006 Feb 19
16
Open source rails e-commerce engine?
I''m pinging the list to see if anyone is working on an open-source
e-commerce engine based on Rails yet - something like OSCommerice I guess.
Anyone? Is there interest out there for such a thing?
I have such a product which has been extracted from real world code. It
currently runs 3 production rails sites in various shapes and forms,
implemented as a rails engine.
Basic feature list:
-
2006 Feb 18
44
I forgot. Why do we hate* Java?
Hi,
I''ve started reading some Java books. Gasp! What makes website
development with Java so bad? I haven''t looked at Struts but I''m
reading about Hibernate. Compared to ActiveRecord, Hibernate seems
like some extra typing to explicitly define the model fields, getters
and setters. I know that these are things that you can do in
ActiveRecord when things get complicated
2006 Mar 25
1
undefined local variable or method `errors'' for Customer:Class
If I add the following line to my customer model:
errors.add(:shipping_address_postcode, "has invalid format") unless
:shipping_address_postcode =~ /[0-9]*/
I get an error when trying to save a record:
undefined local variable or method `errors'' for Customer:Class
I got this example from the Agile book. Anyone know what I''ve missed?
Thanks,
Dan
2006 Mar 25
1
Automatically Filling in form field tags
I have a form which is predominantly a customer form (first name, last
name, etc), if there is a form error and I render to the form from the
controller the customer details are filled in correctly.
The question I have is, I have some fields which are _tag fields not
related to the customer model, how do I get them populated when I render
back to the form on error?
Cheers,
Dan
2006 Mar 24
2
Error Checking and Processing
Does anyone have any ideas on the best way to perform error checking and
processing for a particular problem:
- A customer fills in an order form with their credit card details and
hits submit.
The controller has to do the following work:
- Try to find an existing customer matched by email
- if the customer exists, update their details in the database
- if the customer is new save a
2006 Feb 15
3
Like Query Across Multiple Tables
Firstly, I''m still learning Ruby and rails, so there could be a very
simple solution to this.
I want to search across multiple tables with a "like" query eg: (SQL is
probably the easiest way to describe it):
select
products.*
from products
inner join brands on products.brand_id = brands.id
where
products.name like ''%canon%''
or brands.name like
2006 Jan 05
2
Rails Newb: Foreign Key Views?
I''m a total rails newbie, but I''m learning fast. I have a question that
I can''t seem to find an answer for:
What is the best way of coding views that represent foreign key
relationships?
For example, while developing, I''ve created an "articles" table. I
create some scaffolding code and modify it all to look nice. I then
realise, I need an
2006 Mar 25
7
Overriding <div class="fieldWithErrors">
Does anyone know how to override the <div class="fieldWithErrors">
behaviour when a form field is incorrect?
Thanks,
Dan