Displaying 20 results from an estimated 8000 matches similar to: "Console for Testing Routes?"
2006 Jun 02
1
Best way to bill through LinkPoint? Is ActiveMerchant solid?
I need to set up a site to charge cards through LinkPoint. I did some
searching to see what was available, and saw that Shopify uses
ActiveMerchant. I saw that it hasn''t been touched in several months,
though perhaps that''s simply because it hasn''t needed any changes.
Just wondering what''s the best way to go about this.
Thanks for any info.
Pat
2006 Apr 29
2
Streaming to/from MySQL
Hi.
When I upload a 10Mb file (from my browser) to my Rails app, a Tempfile
object gets created on the server. When the contents gets written to the
database, it''s a simple INSERT, so basically the data is read to memory
and then inserted into MySQL.
How come the data is not streamed to the DB so we avoid the memory
issue? Is this a short coming of ActiveRecord or the MySQL/Ruby
2005 Mar 17
4
Specifying Which Environment I Am In
After I have uploaded my app where do I specify that my app should now
use production environment settings and not development?
Can that be done dynamically so that I don''t have to reset a value once
I upload website?
Thanks for your help!
2006 Mar 07
17
[UNDER CONSTRUCTION] YAC? (Yet Another Capistrano)
My needs are far more modest than Capistrano''s capabilities. Also, when
working in a shared hosting environment, the Capistrano model can be
outside the capabilities allowed by the Web host.
I simply need to push selected directories (on a changed-file basis) out
to a server. I have about 80% of the code written to do this (I''m
considering YAC for the name, with a nod to
2006 Feb 15
9
Liquid - form helpers? multiple liquid templates?
Hi,
Its taking me a long time to get my head around the Liquid plugin. I
have a couple of questions which hopefully someone can help me with...
- How difficult would it be to add some kind of Filter or Tag which
would allow other Liquid templates to be included into the current
Liquid template (eg. similar to render(:file => "filename")
- How difficult would it be to add
2005 Mar 10
4
:anchor won''t work in 0.10.1
Anyone else having problems with :anchor? Until 0.10.0 it was working
fine but with this recent update it''s just not doing anything.
Thanks,
Pedro
2005 Mar 01
2
@request cycle variables
I posted something about this yesterday, and got some good responses but
it seems that the variable @request[''controller''] isn''t being passed in
to the page or isn''t being read. Has the naming convention for these
variables changed. it worked great in all rails versions up to 0.9.5
with fcgi, but is not working in rails 0.10.0 with fcgi. I am currently
just
2005 Mar 05
3
login generator problem
I am trying to use the login generator, but I keep
getting the following error when I run "generate login
Account":
/usr/lib/ruby/gems/1.8/gems/rails-0.10.0/lib/rails_generator/base.rb:84:in
`manifest'': No manifest for ''login'' generator.
(NotImplementedError)
from (eval):3:in `__send__''
from (eval):3:in `manifest''
from
2006 Feb 28
12
Examples for Money library ?
Can anybody share some examples of their Money implementation ?
I''m trying to setup a Model to use this library, but can''t seem to wrap my
head around how it is exactly supposed to work.
My Model (Foo) looks like:
===============
composed_of :commission, :class_name => "Money", :mapping => [
%w(commission_cents cents), %w(commission_currency currency) ]
Yet, in
2005 Mar 09
10
Confused about extending the login generator ''user''
I''ve been using the login generator ''out of the box'' for simple
authentication, and its been working fine.
Now I want to extend it by simply adding ''type_id'' field which links to
my ''user_types'' table, but I''m hitting:
#<ActionController::SessionRestoreError: Session contained objects where
the class definition
2006 Apr 17
7
Serve static XML files how?
Hi,
a Javascript in one of my Rails templates needs to load a static XML
file. I tried several places to put the actual XML file, and I also
tried to make the file a rails template (tried both .rhtml and .rxml)
and access it via a controller action. None of these ways worked. Does
the lighttpd server know how to serve XML files, or do I need to
configure it first? Or, is there a good workaround?
2005 Aug 08
1
php_serialize-1.0.2.1.rb questions
Has anyone used this to get data out of PHP sessions?
I can get data out using the php_unserialize function however I am
getting a array of strings that looks like this:
["key1: data1","key2: data2"]
I would rather get RoR session style of associative arrays
["key1"=>"data", "key2"=>"data2"]
Am I just being dense and there is an
2005 Jul 22
1
A Bit Baffled By text_field
Hello.
I am converting my Java app to Rails and I''ve hit something that has me a
bit baffled. I''ve been fiddling with this for over an hour and trying many
different combinations so at this point I''ve lost perspective.
It''s probably something simple but I can''t see it anymore.
I have a component that looks like this:
<% for advertiser_category in
2005 Jul 06
4
Rails Community Site Hacked
http://wiki.rubyonrails.com/rails/show/HomePage
Now sure if anyone has noticed yet, but the above page has been hacked.
2005 Apr 24
4
Typo 2.0
I''m proud to announce the 2.0 release of the typo web logging engine.
What started as a toy project while
I was waiting for a client at starbucks now became a prestige open
source project with tons of modern features a dedicated dev team and
even its own hosting service!
Get it at http://rubyforge.org/projects/typo/
The 2.0 release has been long coming. Here are some of the new
2006 Jan 08
8
I need untyped associations
I am in the process of trying to migrate to ROR from a home grown ORM,
but one stumbling block is ActiveRecord''s typed associations and object
ID assignment scheme. In the home grown system, I have a master table
which *all* objects are packed into and a master associative table which
holds *all* associations. This allows each object, regardless of type,
to have a unique ID and thus it
2005 Mar 24
3
Caching computation in rails?
Caching computation in rails?
Simple example: factorial modulus a large number
input: integer x
output: factorial( x ) % 12345678901234567
I want it so that if it computes factorial of N once, it will not have
to compute for N again.
code:
class SiteController < ApplicationController
caches_action :factorial, :inv
def examine
@inv = @params[''inv'']
@outv =
2005 Mar 06
9
How to do SQL queries outside of AR
Hi Everyone,
I''m trying to figure out how to do SQL queries in the Controller. I know
this is not recommended, but I can''t use ActiveRecord because I am
dealing with thousands of a different tables, one for each user, and
I don''t think AR can be made to handle that situation.
You can assign the table name; but that''s a class variable so any particular
2005 Aug 04
7
Frames within rails
What is the best way to create frames in rails?
thanks
fp
2006 Apr 13
8
DevTower Beta3 Release!
DevTower Beta3! (0.3)
I''m proud to announce some major changes and improvements to DevTower in
this beta release! First and foremost, DevTower is now a full plugin. Also,
DevTower works (only) with Rails 1.1.
==== ABOUT =====
DevTower used to synchronize the development of Ruby On
Rails applications with developers working simultaniously
on multiple systems with Subversion. DevTower