Re: [Rails] PayPal

2012-08-31 Thread Patrick Mulder
The error says that the route is not found. For debugging, you need to check your routes. Try: rake routes | grep pay_bill Something should show up, since the tutorials says to put this in the routes file: match '/billing', :to => 'billing#create', :as => :pay_bill Maybe rereading: http:/

Re: [Rails] ActiveScaffold Export file - Send as Email

2012-07-19 Thread Patrick Mulder
On Thu, Jul 19, 2012 at 9:04 AM, Priya Saini wrote: > I am using Rails 1.2.3 and Active scaffold 1.1.1 > My requirement is to send the export of users data weekly to the admin > as email via cron. > > How can i automate the process of exporting csv and storing it at a > place? So that i can pick i

Re: [Rails] Best book for testing

2012-06-28 Thread Patrick Mulder
I would suggest another book: http://leanpub.com/everydayrailsrspec - This is especially interesting for the Rails context, which I missed somewhat in the Rspec book, it starts to explain BDD of plain Ruby classes and objects. Apart from this, I recently discovered that the Gem RSpec-rails is nic

Re: [Rails] compass_twitter_bootstrap different path

2012-06-28 Thread Patrick Mulder
Can you post something more on the stacktrace of the error? Or, is it that the manifest, where definitions of CSS and JS lives (under /app/assets/... ) is not finding the files? Alternatively, you could report the issue at Github under the Gem's issues On Thu, Jun 28, 2012 at 9:42 AM, Michele Keo

Re: [Rails] Hosting of Ruby on Rails3 App

2012-06-21 Thread Patrick Mulder
On Thu, Jun 21, 2012 at 1:31 PM, Mandy wrote: > > On Thursday, June 21, 2012 1:12:17 PM UTC+5:30, subbu g wrote: >> >> Heroku is good > > > Can you please explain more about Heroku. I'm not getting it. > > -- Heroku offers free hosting space with an easy deployment process (especially regarding d

Re: [Rails] model reference

2012-06-18 Thread Patrick Mulder
On Mon, Jun 18, 2012 at 7:38 AM, tanizawa wrote: > hi > > I am tanizawa > I am searching how to add  reference of two same table. > Please teach me how to add . > exmple: > class CreateLocationjs < ActiveRecord::Migration >   def change >     create_table :locationjs do |t| >       t.references :l

Re: [Rails] Hook into ActiveRelation?

2012-06-13 Thread Patrick Mulder
>From Ruby Syntax point of view, you could write something like this: [1,2,3].wrap_results_with(UserDelegator, &p) where the method looks like: def block_wrap_with(klass, &block) map do |a| result = yield a, klass end end and p = lambda { |m, klass| klass.new(m) } possibly, you coul

Re: [Rails] Need to Create Soap Web Service in Rails 3.2

2012-06-13 Thread Patrick Mulder
I am a fan of https://github.com/typhoeus/typhoeus And writing custom XML builders wiith Nokogiri The combination is what would you do by using Curl and XML files from the command line Von meinem iPhone gesendet Am 13.06.2012 um 19:46 schrieb Loganathan Sellapa : > Thanks Javier, Looks lik