rubyonrailsin

A Ruby and Rails talk

Thursday, March 25, 2010

[Rails] Rails 3.0 + haml render partial ActionView::MissingTemplate

by rubyonrailsin 0 comments
I'm upgrading one of my apps to rails 3.0

I get this error:
ActionView::MissingTemplate
Missing partial /layouts/header with {:formats=>nil} in view path

for:
= render :partial => "layouts/header"
the file is in views/layouts/header.

From the error message, it looks like it appends an absolute path: "/
layouts/header"

Anyone has seem this problem when upgrading to rails 3.0 pre?


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Read More…

[spree-user] Re: 0.10 successfully in production on Heroku

by rubyonrailsin 0 comments
nice work, would love to hear some details on how you got it to
work...

On Mar 25, 6:33 am, Jason <daretr...@gmail.com> wrote:
> I can't say that it was entirely easy, but it seems to be working like
> a charm now.  Site is at:
>
>  http://www.FluentImages.com
>
> Running spree-heroku, static-content and using s3 for image storage.
>
> Thanks,
>
> -Jason

--
You received this message because you are subscribed to the Google Groups "Spree" group.
To post to this group, send email to spree-user@googlegroups.com.
To unsubscribe from this group, send email to spree-user+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.

Read More…

[Rails] Is every request one thread?

by rubyonrailsin 0 comments
I am asking because the documentation in ConnectionPool states that

"The basic idea is that each thread checks out a database connection
from the pool, uses that connection, and checks the connection back
in."

I would like to check out a connection in a before_filter, and check it
back in in an after_filter of a request, because I need to be sure to
use the same connection for the whole lifecycle of the request (I need
to set a session variable that is read by some views that use it as
prameter).

Can someone who knows confirm?

Thanks!
--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Read More…

Re: [Rails] Re: Re: Re: Re: debugger problems

by rubyonrailsin 0 comments
On 25 March 2010 21:44, Dani Dani <lists@ruby-forum.com> wrote:
> Colin Law wrote:
>> Alternatively try Ubuntu, it is great.  You can set up a dual boot on
>> the PC so you can still use windows
+1
Or even easier; run a virtual machine (VMWare or Virtual Box) inside
Windows to experiment with.

> I'm not so familiar with linux, but I assume I have to start looking at it.

After using Windows when I started with Rails, I moved to Linux just
over a year ago, and haven't looked back. It's extraordinarily easy to
get running with, and you can just pretend it's Windows for a while
and stick to the GUI while you get comfortable dipping in and out of
terminal windows.

Make the leap :-)

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Read More…

[Rails] Re: Re: Re: Re: debugger problems

by rubyonrailsin 0 comments
Colin Law wrote:
> Well you are beyond my knowledge base here. The majority of Rails
> users are on macs or linux, notably Ubuntu, which includes me.
>
> http://rubyforge.org/tracker/index.php?func=detail&aid=26656&group_id=1900&atid=7436
> includes the comment fixed in ruby-debug-ide 0.4.8
> How you go about getting the later version I do not know.
>
> On Ubuntu I do not have ruby-debug-ide but have ruby-debug instead
>
> Any Aptana experts out there?
>
> If you don't get any help here it might be worth starting a new thread
> with the error and Aptana in the subject.
>
> Alternatively try Ubuntu, it is great. You can set up a dual boot on
> the PC so you can still use windows, which is what I did and now I
> hardly use windows at all. Suddenly I feel that I am back in control
> of the PC again.
>
> Colin

Ok, thank you very much colin for taking time to look at my issue.
I'm not so familiar with linux, but I assume I have to start looking at
it.
Thank you,
Dani
--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Read More…

Re: [Rails] Re: Re: Re: debugger problems

by rubyonrailsin 0 comments
On 25 March 2010 21:09, Dani Dani <lists@ruby-forum.com> wrote:
>> What do you see if you do
>> gem list
>> in the console.  You should see ruby-debug and ruby-debug-base there.
>>
>> Are you using radrails?  Googling for the error message gave a
>> radrails issue as a possible cause.
>>
>> Colin
>
> Hi Colin,
> This is what I get (gem list):
> actionmailer (2.3.5, 2.0.2)
> actionpack (2.3.5, 2.0.2)
> activerecord (2.3.5, 2.0.2)
> activeresource (2.3.5, 2.0.2)
> activesupport (2.3.5, 2.0.2)
> capistrano (2.1.0)
> cgi_multipart_eof_fix (2.5.0)
> cmdparse (2.0.2)
> columnize (0.3.1)
> fxri (0.3.6)
> fxruby (1.6.12)
> gem_plugin (0.2.3)
> highline (1.4.0)
> hpricot (0.6)
> linecache (0.43)
> log4r (1.0.5)
> mongrel (1.1.2)
> mysql (2.7.3)
> needle (1.3.0)
> net-sftp (1.1.0)
> net-ssh (1.1.2)
> rack (1.0.1)
> rails (2.3.5, 2.0.2)
> rake (0.8.7, 0.8.1, 0.8.0, 0.7.3)
> ruby-debug-base (0.10.3)   <--------------------------------
> ruby-debug-ide (0.4.6)     <--------------------------------
> rubygems-update (1.3.6, 1.0.1)
> sources (0.0.1)
> sqlite3-ruby (1.2.1)
> win32-api (1.0.4)
> win32-clipboard (0.4.3)
> win32-dir (0.3.2)
> win32-eventlog (0.4.6)
> win32-file (0.5.4)
> win32-file-stat (1.2.7)
> win32-process (0.5.3)
> win32-sapi (0.1.4)
> win32-sound (0.4.1)
> windows-api (0.2.0)
> windows-pr (0.7.2)
>
> I have Aptana installed (radrails ?).

Well you are beyond my knowledge base here. The majority of Rails
users are on macs or linux, notably Ubuntu, which includes me.

http://rubyforge.org/tracker/index.php?func=detail&aid=26656&group_id=1900&atid=7436
includes the comment fixed in ruby-debug-ide 0.4.8
How you go about getting the later version I do not know.

On Ubuntu I do not have ruby-debug-ide but have ruby-debug instead

Any Aptana experts out there?

If you don't get any help here it might be worth starting a new thread
with the error and Aptana in the subject.

Alternatively try Ubuntu, it is great. You can set up a dual boot on
the PC so you can still use windows, which is what I did and now I
hardly use windows at all. Suddenly I feel that I am back in control
of the PC again.

Colin

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Read More…

Re: [Rails] How to include a ruby gem environment.rb file?

by rubyonrailsin 0 comments
Hi Jorge,

It's because config.gem was first introduced in version 2.1 – that's why it doesn't work in 2.0.2. You can see that in http://api.rubyonrails.org/files/vendor/rails/railties/CHANGELOG.html by looking under "Added config.gem for specifying which gems are required by the application" and then moving up until you see the version.

/Lasse

2010/3/24 Jorge alejandro Mendoza torres <lists@ruby-forum.com>
I'm doing a Web Service Based on a page I found
(http://blog.complitech.net/web-services-basics-ruby-on-rails/) using
the rails version 2.3.4, the web service is already working, but when
working on a version Previous:

RAILS_GEM_VERSION = '2 .0.2 'unless defined? RAILS_GEM_VERSION

I can not run the service.

On the previous page, there's a part that says:

3) Next step is to add the gem to the conf / environment.rb so that is
knows the correct gem actionwebservice

  config.gem 'dougbarth-actionwebservice',: lib => 'actionwebservice'

But if I do it, I can not run the service, the program sends this
message:

C:/Users/usuario/Desktop/Servidor/test/config/environment.rb:26: private
method `gem' called for #<Rails::Configuration:0x5c5dbcc>
(NoMethodError)

On this page:
http://api.rubyonrails.org/files/vendor/rails/railties/CHANGELOG.html,
is as follows:

# OLD open_id_authentication plugin init.rb require 'Yadis' require
'openid' ActionController:: Base.send: include OpenIdAuthentication

# NEW config.gem "ruby-openid",: lib => "openid",: version => "1.1.4"
config.gem "ruby-Yadis",: lib => "Yadis",: version => " 0.3.4 "

But I do not like change, please, I need help.

Thanks and regards.
--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Read More…

[spree-user] Re: Why are my tests failing locally?

by rubyonrailsin 0 comments
Maybe somehow problem happens with available_on date?
Or maybe you set Spree::Config[:show_zero_stock_products] = false
instead default 'true' value...


On Mar 25, 2:05 am, Sean Schofield <s...@railsdog.com> wrote:
> The tests in edge are passing on the CI server and for most everyone
> but I've had these 5 test failures for a while now.
>
> http://pastie.textmate.org/885688
>
> Any ideas?
>
> Sean Schofield
>
> -------------------------------------------
> Rails Dog LLC
> 2 Wisconsin Circle, Suite 700
> Chevy Chase, MD 20815
> voice: (301)560-2000
> -------------------------------------------

--
You received this message because you are subscribed to the Google Groups "Spree" group.
To post to this group, send email to spree-user@googlegroups.com.
To unsubscribe from this group, send email to spree-user+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.

Read More…

[Rails] Re: Re: Re: debugger problems

by rubyonrailsin 0 comments
> What do you see if you do
> gem list
> in the console. You should see ruby-debug and ruby-debug-base there.
>
> Are you using radrails? Googling for the error message gave a
> radrails issue as a possible cause.
>
> Colin

Hi Colin,
This is what I get (gem list):
actionmailer (2.3.5, 2.0.2)
actionpack (2.3.5, 2.0.2)
activerecord (2.3.5, 2.0.2)
activeresource (2.3.5, 2.0.2)
activesupport (2.3.5, 2.0.2)
capistrano (2.1.0)
cgi_multipart_eof_fix (2.5.0)
cmdparse (2.0.2)
columnize (0.3.1)
fxri (0.3.6)
fxruby (1.6.12)
gem_plugin (0.2.3)
highline (1.4.0)
hpricot (0.6)
linecache (0.43)
log4r (1.0.5)
mongrel (1.1.2)
mysql (2.7.3)
needle (1.3.0)
net-sftp (1.1.0)
net-ssh (1.1.2)
rack (1.0.1)
rails (2.3.5, 2.0.2)
rake (0.8.7, 0.8.1, 0.8.0, 0.7.3)
ruby-debug-base (0.10.3) <--------------------------------
ruby-debug-ide (0.4.6) <--------------------------------
rubygems-update (1.3.6, 1.0.1)
sources (0.0.1)
sqlite3-ruby (1.2.1)
win32-api (1.0.4)
win32-clipboard (0.4.3)
win32-dir (0.3.2)
win32-eventlog (0.4.6)
win32-file (0.5.4)
win32-file-stat (1.2.7)
win32-process (0.5.3)
win32-sapi (0.1.4)
win32-sound (0.4.1)
windows-api (0.2.0)
windows-pr (0.7.2)

I have Aptana installed (radrails ?).
Dani
--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Read More…

Re: [Rails] flash error & fade away

by rubyonrailsin 0 comments
Ok – you could easily do this by fading the div with id="errorExplanation", like this:

  $('errorExplanation').fade();

Would this do it?

/Lasse

2010/3/25 tom <tomabroad@gmail.com>
hi,ok let me try:

i want the standard rails (error)messages like this one:

1 error prohibited this comment from being saved

There were problems with the following fields:

  • Title can't be blank

to fade away.
so not sure how to do that...

thx




On Thu, Mar 25, 2010 at 2:25 PM, Lasse Bunk <lassebunk@gmail.com> wrote:
Hey,

Not quite understood – could you explain further?

Thanks,
/Lasse

2010/3/24 tom <tomabroad@gmail.com>
this is my current code:

#notice {
border: solid 1px #99cc99;
background-color: #e2f9e3;
color: #006600;
padding: 5px;
margin-bottom: 5px;
}
 
#notice.error {
border-color: #e2f9e3;
background-color: #eeaaaa;
color: #cc0000;
}


<% flash.each do |key, msg| %>
   <%= content_tag :div, flash[:error] || flash[:notice], :id => 'notice', :class => ('error' if flash[:error]) %>
  <% content_tag :script, :type => "text/javascript" do %>
    $('<%= key %>').style.display = 'none';
    new Effect.Appear('<%= key %>', {duration: 3});
  <% end %>

  <% content_tag :script, :type => "text/javascript" do %>
    setTimeout("new Effect.Fade('<%= key %>');", 10000);
  <% end %>
<% end %>

but how can i achieve to css the rails standard way of showing errors liek that one:

1 error prohibited this comment from being saved

There were problems with the following fields:

  • Title can't be blank


only if i return something like that:
  flash[:error] = 'Error'

it actually shows up in "my" div.

hope u guys know what i mean ;-)

thx



--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Read More…

Re: [Rails] Re: Re: debugger problems

by rubyonrailsin 0 comments
On 25 March 2010 19:22, Dani Dani <lists@ruby-forum.com> wrote:
> Hi again,
> so here is the excerpt of the code:
> class StoreController < ApplicationController
>  def index
>    @products = Product.find_products_for_sale
>  end
>  def add_to_cart
>    debugger  <-------------------------------
>    product = Product.find(params[:id])
>    @cart = find_cart
>    @cart.add_product(product)
>  rescue ActiveRecord::RecordNotFound
>    logger.error("Attempt to access invalid product #{params[:id]}")
>    flash[:notice] = "Invalid Product"
>    redirect_to :action => 'index'
>  end
>
> Here I start the server:
> ========================================================================
>  D:\InstantRails\rails_apps\depot>ruby script/server --debugger
> => Booting Mongrel
> => Rails 2.3.5 application starting on http://0.0.0.0:3000
> => Debugger enabled
> => Call with -d to detach
> => Ctrl-C to shutdown server
> ========================================================================
>
> This is what I'm getting in the browser:
> ==================================================
>  NoMethodError in StoreController#add_to_cart
> undefined method `run_init_script' for Debugger:Module
> ======================================================================
>
> Here is what I'm getting on the console:
> =============================================================================
> NoMethodError (undefined method `run_init_script' for Debugger:Module):
>  D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/ruby-debug-base-0.10.3-x86-mswin32/lib/ruby-debug-base.rb:239:in
> `debugger'
>  app/controllers/store_controller.rb:7:in `add_to_cart'
> =============================================================================

What do you see if you do
gem list
in the console. You should see ruby-debug and ruby-debug-base there.

Are you using radrails? Googling for the error message gave a
radrails issue as a possible cause.

Colin

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Read More…

[spree-user] Re: resource_controller vs. inherited_resources

by rubyonrailsin 0 comments
I've had problems grasping how r_c works and have ended up turning it
off for many customized methods in extensions. But most of the time I
like how it hides basic code and just works. Is there any utility that
exists or could be easily written that would print out to a log
exactly what r_c is doing behind the scenes? If you could turn that on
when you need it, it would help immensely. Is there such a thing?

As far as i_r vs. r_c, I think it's too early to decide. Better to
wait for rails 3.0 to mature and see what happens with multiple apps
and other features. Major changes may be necessary for Spree to fit
into the new landscape so better to save the changes til then. People
with new projects will be hot to use the latest hotness but
established projects will want to wait to convert something so central
to their business as their shopping cart. Should be interesting.
Will Emerson

On Mar 24, 2:39 pm, Sean Schofield <s...@railsdog.com> wrote:
> Just so we're clear I think most people are saying r_c is fine but
> that for one or two of the controllers its more cumbersome with all of
> the hooks, etc. than its worth.

--
You received this message because you are subscribed to the Google Groups "Spree" group.
To post to this group, send email to spree-user@googlegroups.com.
To unsubscribe from this group, send email to spree-user+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.

Read More…

Re: [Rails] Re: collection_select has_many

by rubyonrailsin 0 comments
u can do that:

<%= select_tag :skillset_id, option_groups_from_collection_for_select(Skillset.find_all_by_parent_id(nil), :children, :title, :id, :title) %>


Skillset is a act_as_tree model!


hope that helps





On Thu, Mar 25, 2010 at 1:30 PM, Silverbizness <silverbizness@gmail.com> wrote:
Same here.
It's such a pain to find the appropriate documentation to do that.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Read More…

[Rails] Re: Trying to use sphinx search engine

by rubyonrailsin 0 comments
Sumeet Panchal wrote:
> Hi,
>
> All any kind of help is appreciated. and thanks a lot.
>
> I have to apply sphinx search on my project.
> My development environment is windows, My SQL, Ruby Rails but the
> project is deployed on Ubuntu.
>
> Q1 ) Can I use sphinx. Will it be a problem if the development is on
> windows and deployment is on Ubuntu.
>
> Q2) Also I want to use sphinx search to fetch records, and the result
> should only have certain columns which I want to
> Q3) fetch for example. I have an object Note(id, name, text, date) and
> I want to grab only name and text.
>
> Q4) Can I use thinking sphinx?
> Q5) I am not using apache will it be a problem?
>
> Thanks
> Sumeet

1. Although you should be able to get it running in both environments I
would suggest that you keep both the development and production
environments as close as possible. There are lots of little differences
between the operating systems and you will spend time cleaning up bugs
that you wouldn't run into otherwise. I have been playing with Virtual
Box quite a bit recently both at work and at home and it works great as
a development environment.

2. The "result" will be the record and you can display it any way you
want in your view. If you only want to display name and text then
create your form with just those fields. Be aware that you define what
gets indexed so if your question was whether you could limit your
searches to specific fields, the answer is still yes. You just only
index the fields you want to be searchable.

4. Not sure what the question here is but yes, you should be able to
use it.

5. Apache just provides a conduit to your application server and serves
up static content. It makes no difference whether you are using Apache
or another server.
--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Read More…

Re: [Rails] flash error & fade away

by rubyonrailsin 0 comments
hi,ok let me try:

i want the standard rails (error)messages like this one:

1 error prohibited this comment from being saved

There were problems with the following fields:

  • Title can't be blank

to fade away.
so not sure how to do that...

thx



On Thu, Mar 25, 2010 at 2:25 PM, Lasse Bunk <lassebunk@gmail.com> wrote:
Hey,

Not quite understood – could you explain further?

Thanks,
/Lasse

2010/3/24 tom <tomabroad@gmail.com>
this is my current code:

#notice {
border: solid 1px #99cc99;
background-color: #e2f9e3;
color: #006600;
padding: 5px;
margin-bottom: 5px;
}
 
#notice.error {
border-color: #e2f9e3;
background-color: #eeaaaa;
color: #cc0000;
}


<% flash.each do |key, msg| %>
   <%= content_tag :div, flash[:error] || flash[:notice], :id => 'notice', :class => ('error' if flash[:error]) %>
  <% content_tag :script, :type => "text/javascript" do %>
    $('<%= key %>').style.display = 'none';
    new Effect.Appear('<%= key %>', {duration: 3});
  <% end %>

  <% content_tag :script, :type => "text/javascript" do %>
    setTimeout("new Effect.Fade('<%= key %>');", 10000);
  <% end %>
<% end %>

but how can i achieve to css the rails standard way of showing errors liek that one:

1 error prohibited this comment from being saved

There were problems with the following fields:

  • Title can't be blank


only if i return something like that:
  flash[:error] = 'Error'

it actually shows up in "my" div.

hope u guys know what i mean ;-)

thx



--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Read More…

[Rails] Updating sub-attirbutes without selecting the parent

by rubyonrailsin 0 comments
I am working on an application and need to be able to update a single
field of nested record in the applications. For instance,

Library has_many Books
Book has_many Chapters

I would like to be able to have a single form on the Library page that
allows me to use a pull down list that selects the book and the chapter
and have users be able to update that chapters' associated fields (mark
the chapter as updated for instance). It doesn't need to be smart and
pull the existing values for the chapter record. I would be happy to
use form_tag and make it a dumb form to just dump the data into the
database but I am not sure how to best approach it. I have tried using
the nested form_for and fields_for methods but they appear to break
after one "layer" of nesting. Lets assume all chapters have a key field
that is unique across the whole chapters table; is there a way I could
create a form that would ignore associations and just look for that key
field and update that record - ignoring that the chapter is owned by a
book and the book is owned by a library? Thanks,
--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Read More…

Re: [Rails] Re: Dup a Constant

by rubyonrailsin 0 comments
Thank you very much for your explanations :)

adrien

2010/3/25 Colin Law <clanlaw@googlemail.com>
On 25 March 2010 14:47, Adrien Coquio <adrien.coquio@gmail.com> wrote:
> In fact the previous example doesn't change the value of
> PeopleHelpers::MYCONSTANT
>
> but if I do :
> <%
>  joke = PeopleHelpers::MYCONSTANT.dup
>  joke[:opt][:title].sub!('a','b')
>  #if i debug there, PeopleHelpers::MYCONSTANT = {:opt => {:title =>
>  bbcdef}}
> %>
>
> the value changed.. why ?
>

My understanding is that dup makes a copy of the hash contents, but
since the contents are themselves references rather than simple
objects you end up with a new hash containing references to the same
objects, which can then be modified as you have noted (even though
they are notionally constant).

Colin

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.




--
COQUIO Adrien
adrien.coquio@gmail.com

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Read More…

[Rails] Re: Re: debugger problems

by rubyonrailsin 0 comments
Hi again,
so here is the excerpt of the code:
class StoreController < ApplicationController
def index
@products = Product.find_products_for_sale
end
def add_to_cart
debugger <-------------------------------
product = Product.find(params[:id])
@cart = find_cart
@cart.add_product(product)
rescue ActiveRecord::RecordNotFound
logger.error("Attempt to access invalid product #{params[:id]}")
flash[:notice] = "Invalid Product"
redirect_to :action => 'index'
end

Here I start the server:
========================================================================
D:\InstantRails\rails_apps\depot>ruby script/server --debugger
=> Booting Mongrel
=> Rails 2.3.5 application starting on http://0.0.0.0:3000
=> Debugger enabled
=> Call with -d to detach
=> Ctrl-C to shutdown server
========================================================================

This is what I'm getting in the browser:
==================================================
NoMethodError in StoreController#add_to_cart
undefined method `run_init_script' for Debugger:Module
======================================================================

Here is what I'm getting on the console:
=============================================================================
NoMethodError (undefined method `run_init_script' for Debugger:Module):
D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/ruby-debug-base-0.10.3-x86-mswin32/lib/ruby-debug-base.rb:239:in
`debugger'
app/controllers/store_controller.rb:7:in `add_to_cart'
=============================================================================

Hope this helps (I'm novice here and trying to learn ROR).
Thank you in advance for any help,
Dani

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Read More…

Re: [spree-user] Re: Paypal Express 500 internal server error

by rubyonrailsin 0 comments
We've not implemented that yet.

On 25 March 2010 18:39, Sean Schofield <sean@railsdog.com> wrote:
Well it does also have that "express checkout" option from cart right?
 Or have we not implemented that half yet?  This allows you to
checkout with your previous info from any store etc.  I suppose that's
a benefit.

Sean Schofield

-------------------------------------------
Rails Dog LLC
2 Wisconsin Circle, Suite 700
Chevy Chase, MD 20815
voice: (301)560-2000
-------------------------------------------



On Thu, Mar 25, 2010 at 1:25 PM, Brian Quinn <brian@railsdog.com> wrote:
> Hey I'm glad you finally got it working.
> Both of those issues are pretty much related, we need to:
> 1) hide / disable / rewire the "Save & Continue" button when PPE is
> selected.
> 2) force core to ensure that an actual payment is made.
> I'll take a look at what's involved there.
> PPE really behaves like a standard gateway (as far as I can tell), you can
> make calls for all the same information you do on "regular" gateway. I know
> it does still provide an IPN but I'm not sure what it's benefit is intended
> to be (when you already go to the bother of making all the needed calls
> interactively anyway).
> Plus, the issue regarding capturing is really dependent on the
> :auto_capture preference (which by default is false), so all payments are
> just authorized. You can manually capture a PPE payment via the order's
> Payments screen - where the authorized payment will appear under "Pending
> Payments", once you click on the "Capture" link it will move to "Finalized
> Payments" and you can click "Show"  to see the actual auth and capture
> transactions.
> If you set :auto_capture to true, the the payment will
> capture immediately and appear under "Finalized Payments" - with only one
> transaction appearing when u view it's details.
> Finally regarding PPE and emails, when using the sandbox you can review all
> the transactional email on the "Test Email" page on the sandbox site.
>
> On 25 March 2010 13:19, Chris <r3ap3r2004@gmail.com> wrote:
>>
>> I had to copy and paste both of these instructions into a text editor
>> to look at them side by side to see what your typo was. :-D
>> Definitely an easy mistake to make.
>>
>> OK.  The extension does work, but I've found 2 bugs in the process.
>>
>> First bug:
>> When I choose the PayPal radio button when checking out, the credit
>> card options are removed and the 'Pay with PayPal' graphic/link shows
>> up.  That part is fine, the problem is that the Spree "Save and
>> Continue" button remains.  Not knowing for sure which I was supposed
>> to click I chose the 'Save and Continue' button which happily moved
>> along to the confirm page and then the thanks for purchasing page.  It
>> did this without me entering any kind of payment information.
>>
>> When logging into the Admin I could see this order in the orders list
>> as a 'New' order.  If I edit the order and go to the payments page it
>> shows a PayPal payment.  The links to the right though that normally
>> say "Show" and "Capture"  said "Show paypalexpress Capture" or
>> something like that.  When I clicked on Show I got some template error
>> undefined method `email' for nil:NilClass from line #11 of
>>
>> vendor/extensions/paypal_express/app/views/admin/payments/source_views/_paypalexpress.html.erb).
>>  Anyway, at that point I clicked my back button and then clicked on
>> the "Capture" link which in turn changed the order to be 'Paid'.  This
>> of course is a major bug since it couldn't possibly have captured
>> payment since I didn't give it any paypal information to actually use
>> to pay for the funds, so how could it capture them.
>>
>> So Bug #2:  Payment capturing is somehow capturing a payment even
>> though there was no authorization which didn't occur since I never
>> actually was directed to the paypal site to verify my account and pay
>> for the goods.  So in reality it isn't capturing a payment it is
>> simply giving away product.
>>
>>
>> On the bright side:  If I click on the 'Pay with PayPal' link like I
>> should everything worked fine.  Of course I'm not sure if PayPal
>> denied the payment if the capture would actually be capturing or not,
>> but I'm sure it would mark the product as paid for either way.
>>
>> This is possibly a misunderstanding on my part about how PayPal
>> express is supposed to work.  I understand the regular gateways that
>> return transaction codes, authorizations, etc., and I've written IPN
>> code to deal with the gateway returning the authorization
>> asynchronously, but I'm not sure if that is an option using PayPal
>> Express.  I assume since when I issued a 'Capture' even on the order
>> that I placed properly that I didn't get an e-mail from PayPal saying
>> that the funds had been captured that it wasn't actually capturing.
>>
>> Anyway, it would be nice to know the expected work flow when using
>> this extension too.
>>
>> Thanks,
>> -Chris
>>
>> On Thu, Mar 25, 2010 at 7:20 PM, Brian Quinn <brian@railsdog.com> wrote:
>> > Ok, please don't kill me but my instructions had a typo..... me = idiot.
>> > Chris / anyone can you please try:
>> > git clone git://github.com/railsdog/spree.git spree-ppe
>> > cd spree-ppe
>> > cp config/database.yml.example config/database.yml
>> > rake db:bootstrap
>> > ./script/extension  install
>> > git://github.com/railsdog/spree-paypal-express.git
>> > rake db:migrate
>> > ./script/server
>> >
>> >
>> > On 25 March 2010 02:19, Chris <r3ap3r2004@gmail.com> wrote:
>> >>
>> >> I should point out that it is a clean spree install.  It's my existing
>> >> rvm setup.
>> >> -Chris
>> >>
>> >> On Thu, Mar 25, 2010 at 11:18 AM, Chris <r3ap3r2004@gmail.com> wrote:
>> >> > Sean,
>> >> > Clean install following Brian's list of steps to the letter.
>> >> >
>> >> > As an aside, I haven't been chasing down the problem myself because
>> >> > I'm not at a point where I need it yet, and my priority list has
>> >> > quite
>> >> > a few things ahead of it right now.  But you asked if anyone else was
>> >> > experiencing the problem so I ran through the steps to help test
>> >> > Brian's method.
>> >> >
>> >> > So does anyone know if you can just zip up a rvm folder and
>> >> > transplant
>> >> > it to another system and have it work?  If that works I'm happy to
>> >> > zip
>> >> > it up for you to play with.
>> >> >
>> >> > -Chris
>> >> >
>> >> > On Thu, Mar 25, 2010 at 10:54 AM, Sean Schofield <sean@railsdog.com>
>> >> > wrote:
>> >> >> You're trying this in clean install with just PPE right?  No special
>> >> >> site extension or other third party extensions?  Another possible
>> >> >> explanation is RVM but I tend to doubt that is it.
>> >> >>
>> >> >> Sean Schofield
>> >> >>
>> >> >> -------------------------------------------
>> >> >> Rails Dog LLC
>> >> >> 2 Wisconsin Circle, Suite 700
>> >> >> Chevy Chase, MD 20815
>> >> >> voice: (301)560-2000
>> >> >> -------------------------------------------
>> >> >>
>> >> >>
>> >> >>
>> >> >> On Wed, Mar 24, 2010 at 9:02 PM, Chris <r3ap3r2004@gmail.com> wrote:
>> >> >>> http://pastie.org/885819
>> >> >>>
>> >> >>> -Chris
>> >> >>>
>> >> >>> On Thu, Mar 25, 2010 at 5:26 AM, Brian Quinn <brian@railsdog.com>
>> >> >>> wrote:
>> >> >>>> So it's bombing out because of the routes.rb, I've taken a look at
>> >> >>>> the
>> >> >>>> routes and nothing jumps out at me as being wrong.
>> >> >>>> Can you compare ur rails / ruby / gems versions with mine
>> >> >>>> here: http://pastie.org/885392
>> >> >>>>
>> >> >>>> On 24 March 2010 15:51, Chris <r3ap3r2004@gmail.com> wrote:
>> >> >>>>>
>> >> >>>>> I get the following error when trying to db:migrate after
>> >> >>>>> installing
>> >> >>>>> the spree-paypal-express plugin.  Following these instructions to
>> >> >>>>> the
>> >> >>>>> letter.
>> >> >>>>>
>> >> >>>>> -Chris
>> >> >>>>> ** Invoke db:migrate (first_time)
>> >> >>>>> ** Invoke environment (first_time)
>> >> >>>>> ** Execute environment
>> >> >>>>> rake aborted!
>> >> >>>>> undefined local variable or method `map' for main:Object
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/test/spree-ppe/vendor/plugins/spree-paypal-express/config/routes.rb:3
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in
>> >> >>>>> `load_without_new_constant_marking'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in
>> >> >>>>> `load'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in
>> >> >>>>> `new_constants_in'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in
>> >> >>>>> `load'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/actionpack-2.3.5/lib/action_controller/routing/route_set.rb:286:in
>> >> >>>>> `load_routes!'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/actionpack-2.3.5/lib/action_controller/routing/route_set.rb:286:in
>> >> >>>>> `each'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/actionpack-2.3.5/lib/action_controller/routing/route_set.rb:286:in
>> >> >>>>> `load_routes!'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/actionpack-2.3.5/lib/action_controller/routing/route_set.rb:266:in
>> >> >>>>> `reload!'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rails-2.3.5/lib/initializer.rb:537:in
>> >> >>>>> `initialize_routing'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/test/spree-ppe/config/../lib/spree/initializer.rb:159:in
>> >> >>>>> `initialize_routing'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rails-2.3.5/lib/initializer.rb:188:in
>> >> >>>>> `process'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rails-2.3.5/lib/initializer.rb:113:in
>> >> >>>>> `send'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rails-2.3.5/lib/initializer.rb:113:in
>> >> >>>>> `run'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/test/spree-ppe/config/../lib/spree/initializer.rb:90:in
>> >> >>>>> `run'
>> >> >>>>> /Users/MyUsername/test/spree-ppe/config/environment.rb:13
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/ree-1.8.7-head/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
>> >> >>>>> `gem_original_require'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/ree-1.8.7-head/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
>> >> >>>>> `require'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in
>> >> >>>>> `require'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in
>> >> >>>>> `new_constants_in'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in
>> >> >>>>> `require'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rails-2.3.5/lib/tasks/misc.rake:4
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:636:in
>> >> >>>>> `call'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:636:in
>> >> >>>>> `execute'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:631:in
>> >> >>>>> `each'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:631:in
>> >> >>>>> `execute'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:597:in
>> >> >>>>> `invoke_with_call_chain'
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/ree-1.8.7-head/lib/ruby/1.8/monitor.rb:242:in
>> >> >>>>> `synchronize'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:590:in
>> >> >>>>> `invoke_with_call_chain'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:607:in
>> >> >>>>> `invoke_prerequisites'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:604:in
>> >> >>>>> `each'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:604:in
>> >> >>>>> `invoke_prerequisites'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:596:in
>> >> >>>>> `invoke_with_call_chain'
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/ree-1.8.7-head/lib/ruby/1.8/monitor.rb:242:in
>> >> >>>>> `synchronize'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:590:in
>> >> >>>>> `invoke_with_call_chain'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:583:in
>> >> >>>>> `invoke'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:2051:in
>> >> >>>>> `invoke_task'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:2029:in
>> >> >>>>> `top_level'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:2029:in
>> >> >>>>> `each'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:2029:in
>> >> >>>>> `top_level'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:2068:in
>> >> >>>>> `standard_exception_handling'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:2023:in
>> >> >>>>> `top_level'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:2001:in
>> >> >>>>> `run'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:2068:in
>> >> >>>>> `standard_exception_handling'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:1998:in
>> >> >>>>> `run'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/bin/rake:31
>> >> >>>>> /Users/MyUsername/.rvm/ree-1.8.7-head/bin/rake:22:in `load'
>> >> >>>>> /Users/MyUsername/.rvm/ree-1.8.7-head/bin/rake:22
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> On Tue, Mar 23, 2010 at 6:06 PM, Brian Quinn <brian@railsdog.com>
>> >> >>>>> wrote:
>> >> >>>>> > I must be doing some weird locally that everyone else is
>> >> >>>>> > missing,
>> >> >>>>> > so
>> >> >>>>> > here's
>> >> >>>>> > the exact steps I just done to get PPE working.
>> >> >>>>> > git clone git://github.com/railsdog/spree.git spree-ppe
>> >> >>>>> > cd spree-ppe
>> >> >>>>> > cp config/database.yml.example config/database.yml
>> >> >>>>> > rake db:bootstrap
>> >> >>>>> > ./script/plugin install
>> >> >>>>> > git://github.com/railsdog/spree-paypal-express.git
>> >> >>>>> > rake db:migrate
>> >> >>>>> > ./script/server
>> >> >>>>> > Once the server starts, login to the admin and create a new
>> >> >>>>> > Payment
>> >> >>>>> > Method
>> >> >>>>> > setting the following fields:
>> >> >>>>> > Name: PayPal
>> >> >>>>> > Environment: Development
>> >> >>>>> > Active: Yes
>> >> >>>>> > Provider: BillingIntegration::PaypalExpress
>> >> >>>>> > Review: unchecked
>> >> >>>>> > Server: test
>> >> >>>>> > No Shipping: unchecked
>> >> >>>>> > Test Mode: checked
>> >> >>>>> > For the actual login details, I've been using the PayPal
>> >> >>>>> > Sandbox
>> >> >>>>> > (API
>> >> >>>>> > Credentials page):
>> >> >>>>> > Login:  API Username (be careful NOT to use the test account
>> >> >>>>> > email
>> >> >>>>> > address
>> >> >>>>> > here)
>> >> >>>>> > Password: API Password
>> >> >>>>> > Signature: Signature
>> >> >>>>> >
>> >> >>>>> > Now try to checkout? Feel free to ping me on the IRC channel if
>> >> >>>>> > u
>> >> >>>>> > see me
>> >> >>>>> > on
>> >> >>>>> > (briandquinn).
>> >> >>>>> > Hope this helps.
>> >> >>>>> > BDQ
>> >> >>>>>
>> >> >>>>> --
>> >> >>>>> You received this message because you are subscribed to the
>> >> >>>>> Google
>> >> >>>>> Groups
>> >> >>>>> "Spree" group.
>> >> >>>>> To post to this group, send email to spree-user@googlegroups.com.
>> >> >>>>> To unsubscribe from this group, send email to
>> >> >>>>> spree-user+unsubscribe@googlegroups.com.
>> >> >>>>> For more options, visit this group at
>> >> >>>>> http://groups.google.com/group/spree-user?hl=en.
>> >> >>>>>
>> >> >>>>
>> >> >>>>
>> >> >>>>
>> >> >>>> --
>> >> >>>> Brian Quinn
>> >> >>>>
>> >> >>>> -------------------------------------------
>> >> >>>> Rails Dog LLC
>> >> >>>> 2 Wisconsin Circle, Suite 700
>> >> >>>> Chevy Chase, MD 20815
>> >> >>>> voice: (301)560-2000
>> >> >>>> -------------------------------------------
>> >> >>>>
>> >> >>>> --
>> >> >>>> You received this message because you are subscribed to the Google
>> >> >>>> Groups
>> >> >>>> "Spree" group.
>> >> >>>> To post to this group, send email to spree-user@googlegroups.com.
>> >> >>>> To unsubscribe from this group, send email to
>> >> >>>> spree-user+unsubscribe@googlegroups.com.
>> >> >>>> For more options, visit this group at
>> >> >>>> http://groups.google.com/group/spree-user?hl=en.
>> >> >>>>
>> >> >>>
>> >> >>> --
>> >> >>> You received this message because you are subscribed to the Google
>> >> >>> Groups "Spree" group.
>> >> >>> To post to this group, send email to spree-user@googlegroups.com.
>> >> >>> To unsubscribe from this group, send email to
>> >> >>> spree-user+unsubscribe@googlegroups.com.
>> >> >>> For more options, visit this group at
>> >> >>> http://groups.google.com/group/spree-user?hl=en.
>> >> >>>
>> >> >>>
>> >> >>
>> >> >> --
>> >> >> You received this message because you are subscribed to the Google
>> >> >> Groups "Spree" group.
>> >> >> To post to this group, send email to spree-user@googlegroups.com.
>> >> >> To unsubscribe from this group, send email to
>> >> >> spree-user+unsubscribe@googlegroups.com.
>> >> >> For more options, visit this group at
>> >> >> http://groups.google.com/group/spree-user?hl=en.
>> >> >>
>> >> >>
>> >> >
>> >>
>> >> --
>> >> You received this message because you are subscribed to the Google
>> >> Groups
>> >> "Spree" group.
>> >> To post to this group, send email to spree-user@googlegroups.com.
>> >> To unsubscribe from this group, send email to
>> >> spree-user+unsubscribe@googlegroups.com.
>> >> For more options, visit this group at
>> >> http://groups.google.com/group/spree-user?hl=en.
>> >>
>> >
>> >
>> >
>> > --
>> > Brian Quinn
>> >
>> > -------------------------------------------
>> > Rails Dog LLC
>> > 2 Wisconsin Circle, Suite 700
>> > Chevy Chase, MD 20815
>> > voice: (301)560-2000
>> > -------------------------------------------
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "Spree" group.
>> > To post to this group, send email to spree-user@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> > spree-user+unsubscribe@googlegroups.com.
>> > For more options, visit this group at
>> > http://groups.google.com/group/spree-user?hl=en.
>> >
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Spree" group.
>> To post to this group, send email to spree-user@googlegroups.com.
>> To unsubscribe from this group, send email to
>> spree-user+unsubscribe@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/spree-user?hl=en.
>>
>
>
>
> --
> Brian Quinn
>
> -------------------------------------------
> Rails Dog LLC
> 2 Wisconsin Circle, Suite 700
> Chevy Chase, MD 20815
> voice: (301)560-2000
> -------------------------------------------
>
> --
> You received this message because you are subscribed to the Google Groups
> "Spree" group.
> To post to this group, send email to spree-user@googlegroups.com.
> To unsubscribe from this group, send email to
> spree-user+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/spree-user?hl=en.
>

--
You received this message because you are subscribed to the Google Groups "Spree" group.
To post to this group, send email to spree-user@googlegroups.com.
To unsubscribe from this group, send email to spree-user+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.




--
Brian Quinn

-------------------------------------------
Rails Dog LLC
2 Wisconsin Circle, Suite 700
Chevy Chase, MD 20815
voice: (301)560-2000
-------------------------------------------

--
You received this message because you are subscribed to the Google Groups "Spree" group.
To post to this group, send email to spree-user@googlegroups.com.
To unsubscribe from this group, send email to spree-user+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.
Read More…

Re: [Rails] new college student

by rubyonrailsin 0 comments
On Wed, Mar 24, 2010 at 3:29 PM, Gramma44 <jimandirene@bresnan.net> wrote:
Hello, all! My son is applying to different colleges and is interested
in a possible career using the Ruby on Rails. Any suggestions as to
programs or colleges that would be a benefit? He would like to start
at the community college level and work his way up.
Thanks!


Gramma44, I received a B.S. in Mathematics and Computer Science  from the University 
of Illinois and their goal is to teach theory and concepts first.  Then use a language(s) to 
enforce these concepts second.  For example, the University of Illinois currently uses Java 
programming language to enforce these concepts in the introductory and data-structures  
courses.  Also, my school would allow one to apply for independent study section by submitting 
a project proposal to a professor and if it's accepted, then one would have choice of programming
language.  

Next, this theory and concepts can be applied to any programming language and you'll be able to 
better market yourself when it comes time to look for a job. Furthermore, many companies will 
most likely require a degree in Computer Science for a software engineering position.  Also, this is
usually the first thing they look for when looking at a resume.  

In short, my recommendation for your son would be to get a degree in Computer Science and supplement 
this with private course(s) and self study in Ruby and/or Rails.  The private courses are recognized as well by
potential employers especially when they have sent some of their own employee(s) to the same course.
For example, a lot of companies that do Ruby and Rails development recognize Pragmatic Studio and
others that provide similar services.
 
Good luck,

-Conrad

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Read More…

Re: [spree-user] using 0.10 with downloadable..

by rubyonrailsin 0 comments
Hi Gary, I've hacked together a bastard version of digital downloads,
though not ready for release into the wild yet. As far as upgrading an
extension to 0.10.1, the main thing to do is adapting it to the view
hooks. Take a look at the spree-assembly extension for pointers. I
would definitely go with 0.10.1, without a doubt. Depending on how
soon you plan to release, maybe even stick to edge.

Cheers

On Thu, Mar 25, 2010 at 5:54 PM, Gary <gppinkham@gmail.com> wrote:
> So I'm about to start a new site with Spree..   I downloaded and
> installed the latest release 0.10.1..   My #1 requirement is digital
> downloads so the downloadable extension is a must..   I see it works
> with Spree 0.9.*..     I was going to try to upgrade it to work with
> 0.10.1..   Curious about a couple of things first..
>
> 1.  Has anyone already started doing this?
> 2.  Would you recommend sticking with 0.9 and just using the current
> downloadable or is 0.10.1 really worth the effort?
> 3.  Has anyone recently done an upgrade of another extension from 0.9
> to 0.10?   Pointers, tips, tricks etc would be greatly appreciated..
>
> Thanks!
> Gary
>
> --
> You received this message because you are subscribed to the Google Groups "Spree" group.
> To post to this group, send email to spree-user@googlegroups.com.
> To unsubscribe from this group, send email to spree-user+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.
>
>

--
You received this message because you are subscribed to the Google Groups "Spree" group.
To post to this group, send email to spree-user@googlegroups.com.
To unsubscribe from this group, send email to spree-user+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.

Read More…

Re: [spree-user] Re: Paypal Express 500 internal server error

by rubyonrailsin 0 comments
Well it does also have that "express checkout" option from cart right?
Or have we not implemented that half yet? This allows you to
checkout with your previous info from any store etc. I suppose that's
a benefit.

Sean Schofield

-------------------------------------------
Rails Dog LLC
2 Wisconsin Circle, Suite 700
Chevy Chase, MD 20815
voice: (301)560-2000
-------------------------------------------

On Thu, Mar 25, 2010 at 1:25 PM, Brian Quinn <brian@railsdog.com> wrote:
> Hey I'm glad you finally got it working.
> Both of those issues are pretty much related, we need to:
> 1) hide / disable / rewire the "Save & Continue" button when PPE is
> selected.
> 2) force core to ensure that an actual payment is made.
> I'll take a look at what's involved there.
> PPE really behaves like a standard gateway (as far as I can tell), you can
> make calls for all the same information you do on "regular" gateway. I know
> it does still provide an IPN but I'm not sure what it's benefit is intended
> to be (when you already go to the bother of making all the needed calls
> interactively anyway).
> Plus, the issue regarding capturing is really dependent on the
> :auto_capture preference (which by default is false), so all payments are
> just authorized. You can manually capture a PPE payment via the order's
> Payments screen - where the authorized payment will appear under "Pending
> Payments", once you click on the "Capture" link it will move to "Finalized
> Payments" and you can click "Show"  to see the actual auth and capture
> transactions.
> If you set :auto_capture to true, the the payment will
> capture immediately and appear under "Finalized Payments" - with only one
> transaction appearing when u view it's details.
> Finally regarding PPE and emails, when using the sandbox you can review all
> the transactional email on the "Test Email" page on the sandbox site.
>
> On 25 March 2010 13:19, Chris <r3ap3r2004@gmail.com> wrote:
>>
>> I had to copy and paste both of these instructions into a text editor
>> to look at them side by side to see what your typo was. :-D
>> Definitely an easy mistake to make.
>>
>> OK.  The extension does work, but I've found 2 bugs in the process.
>>
>> First bug:
>> When I choose the PayPal radio button when checking out, the credit
>> card options are removed and the 'Pay with PayPal' graphic/link shows
>> up.  That part is fine, the problem is that the Spree "Save and
>> Continue" button remains.  Not knowing for sure which I was supposed
>> to click I chose the 'Save and Continue' button which happily moved
>> along to the confirm page and then the thanks for purchasing page.  It
>> did this without me entering any kind of payment information.
>>
>> When logging into the Admin I could see this order in the orders list
>> as a 'New' order.  If I edit the order and go to the payments page it
>> shows a PayPal payment.  The links to the right though that normally
>> say "Show" and "Capture"  said "Show paypalexpress Capture" or
>> something like that.  When I clicked on Show I got some template error
>> undefined method `email' for nil:NilClass from line #11 of
>>
>> vendor/extensions/paypal_express/app/views/admin/payments/source_views/_paypalexpress.html.erb).
>>  Anyway, at that point I clicked my back button and then clicked on
>> the "Capture" link which in turn changed the order to be 'Paid'.  This
>> of course is a major bug since it couldn't possibly have captured
>> payment since I didn't give it any paypal information to actually use
>> to pay for the funds, so how could it capture them.
>>
>> So Bug #2:  Payment capturing is somehow capturing a payment even
>> though there was no authorization which didn't occur since I never
>> actually was directed to the paypal site to verify my account and pay
>> for the goods.  So in reality it isn't capturing a payment it is
>> simply giving away product.
>>
>>
>> On the bright side:  If I click on the 'Pay with PayPal' link like I
>> should everything worked fine.  Of course I'm not sure if PayPal
>> denied the payment if the capture would actually be capturing or not,
>> but I'm sure it would mark the product as paid for either way.
>>
>> This is possibly a misunderstanding on my part about how PayPal
>> express is supposed to work.  I understand the regular gateways that
>> return transaction codes, authorizations, etc., and I've written IPN
>> code to deal with the gateway returning the authorization
>> asynchronously, but I'm not sure if that is an option using PayPal
>> Express.  I assume since when I issued a 'Capture' even on the order
>> that I placed properly that I didn't get an e-mail from PayPal saying
>> that the funds had been captured that it wasn't actually capturing.
>>
>> Anyway, it would be nice to know the expected work flow when using
>> this extension too.
>>
>> Thanks,
>> -Chris
>>
>> On Thu, Mar 25, 2010 at 7:20 PM, Brian Quinn <brian@railsdog.com> wrote:
>> > Ok, please don't kill me but my instructions had a typo..... me = idiot.
>> > Chris / anyone can you please try:
>> > git clone git://github.com/railsdog/spree.git spree-ppe
>> > cd spree-ppe
>> > cp config/database.yml.example config/database.yml
>> > rake db:bootstrap
>> > ./script/extension  install
>> > git://github.com/railsdog/spree-paypal-express.git
>> > rake db:migrate
>> > ./script/server
>> >
>> >
>> > On 25 March 2010 02:19, Chris <r3ap3r2004@gmail.com> wrote:
>> >>
>> >> I should point out that it is a clean spree install.  It's my existing
>> >> rvm setup.
>> >> -Chris
>> >>
>> >> On Thu, Mar 25, 2010 at 11:18 AM, Chris <r3ap3r2004@gmail.com> wrote:
>> >> > Sean,
>> >> > Clean install following Brian's list of steps to the letter.
>> >> >
>> >> > As an aside, I haven't been chasing down the problem myself because
>> >> > I'm not at a point where I need it yet, and my priority list has
>> >> > quite
>> >> > a few things ahead of it right now.  But you asked if anyone else was
>> >> > experiencing the problem so I ran through the steps to help test
>> >> > Brian's method.
>> >> >
>> >> > So does anyone know if you can just zip up a rvm folder and
>> >> > transplant
>> >> > it to another system and have it work?  If that works I'm happy to
>> >> > zip
>> >> > it up for you to play with.
>> >> >
>> >> > -Chris
>> >> >
>> >> > On Thu, Mar 25, 2010 at 10:54 AM, Sean Schofield <sean@railsdog.com>
>> >> > wrote:
>> >> >> You're trying this in clean install with just PPE right?  No special
>> >> >> site extension or other third party extensions?  Another possible
>> >> >> explanation is RVM but I tend to doubt that is it.
>> >> >>
>> >> >> Sean Schofield
>> >> >>
>> >> >> -------------------------------------------
>> >> >> Rails Dog LLC
>> >> >> 2 Wisconsin Circle, Suite 700
>> >> >> Chevy Chase, MD 20815
>> >> >> voice: (301)560-2000
>> >> >> -------------------------------------------
>> >> >>
>> >> >>
>> >> >>
>> >> >> On Wed, Mar 24, 2010 at 9:02 PM, Chris <r3ap3r2004@gmail.com> wrote:
>> >> >>> http://pastie.org/885819
>> >> >>>
>> >> >>> -Chris
>> >> >>>
>> >> >>> On Thu, Mar 25, 2010 at 5:26 AM, Brian Quinn <brian@railsdog.com>
>> >> >>> wrote:
>> >> >>>> So it's bombing out because of the routes.rb, I've taken a look at
>> >> >>>> the
>> >> >>>> routes and nothing jumps out at me as being wrong.
>> >> >>>> Can you compare ur rails / ruby / gems versions with mine
>> >> >>>> here: http://pastie.org/885392
>> >> >>>>
>> >> >>>> On 24 March 2010 15:51, Chris <r3ap3r2004@gmail.com> wrote:
>> >> >>>>>
>> >> >>>>> I get the following error when trying to db:migrate after
>> >> >>>>> installing
>> >> >>>>> the spree-paypal-express plugin.  Following these instructions to
>> >> >>>>> the
>> >> >>>>> letter.
>> >> >>>>>
>> >> >>>>> -Chris
>> >> >>>>> ** Invoke db:migrate (first_time)
>> >> >>>>> ** Invoke environment (first_time)
>> >> >>>>> ** Execute environment
>> >> >>>>> rake aborted!
>> >> >>>>> undefined local variable or method `map' for main:Object
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/test/spree-ppe/vendor/plugins/spree-paypal-express/config/routes.rb:3
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in
>> >> >>>>> `load_without_new_constant_marking'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in
>> >> >>>>> `load'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in
>> >> >>>>> `new_constants_in'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in
>> >> >>>>> `load'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/actionpack-2.3.5/lib/action_controller/routing/route_set.rb:286:in
>> >> >>>>> `load_routes!'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/actionpack-2.3.5/lib/action_controller/routing/route_set.rb:286:in
>> >> >>>>> `each'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/actionpack-2.3.5/lib/action_controller/routing/route_set.rb:286:in
>> >> >>>>> `load_routes!'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/actionpack-2.3.5/lib/action_controller/routing/route_set.rb:266:in
>> >> >>>>> `reload!'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rails-2.3.5/lib/initializer.rb:537:in
>> >> >>>>> `initialize_routing'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/test/spree-ppe/config/../lib/spree/initializer.rb:159:in
>> >> >>>>> `initialize_routing'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rails-2.3.5/lib/initializer.rb:188:in
>> >> >>>>> `process'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rails-2.3.5/lib/initializer.rb:113:in
>> >> >>>>> `send'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rails-2.3.5/lib/initializer.rb:113:in
>> >> >>>>> `run'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/test/spree-ppe/config/../lib/spree/initializer.rb:90:in
>> >> >>>>> `run'
>> >> >>>>> /Users/MyUsername/test/spree-ppe/config/environment.rb:13
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/ree-1.8.7-head/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
>> >> >>>>> `gem_original_require'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/ree-1.8.7-head/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
>> >> >>>>> `require'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in
>> >> >>>>> `require'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in
>> >> >>>>> `new_constants_in'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in
>> >> >>>>> `require'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rails-2.3.5/lib/tasks/misc.rake:4
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:636:in
>> >> >>>>> `call'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:636:in
>> >> >>>>> `execute'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:631:in
>> >> >>>>> `each'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:631:in
>> >> >>>>> `execute'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:597:in
>> >> >>>>> `invoke_with_call_chain'
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/ree-1.8.7-head/lib/ruby/1.8/monitor.rb:242:in
>> >> >>>>> `synchronize'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:590:in
>> >> >>>>> `invoke_with_call_chain'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:607:in
>> >> >>>>> `invoke_prerequisites'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:604:in
>> >> >>>>> `each'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:604:in
>> >> >>>>> `invoke_prerequisites'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:596:in
>> >> >>>>> `invoke_with_call_chain'
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/ree-1.8.7-head/lib/ruby/1.8/monitor.rb:242:in
>> >> >>>>> `synchronize'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:590:in
>> >> >>>>> `invoke_with_call_chain'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:583:in
>> >> >>>>> `invoke'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:2051:in
>> >> >>>>> `invoke_task'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:2029:in
>> >> >>>>> `top_level'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:2029:in
>> >> >>>>> `each'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:2029:in
>> >> >>>>> `top_level'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:2068:in
>> >> >>>>> `standard_exception_handling'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:2023:in
>> >> >>>>> `top_level'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:2001:in
>> >> >>>>> `run'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:2068:in
>> >> >>>>> `standard_exception_handling'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:1998:in
>> >> >>>>> `run'
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> /Users/MyUsername/.rvm/gems/ree-1.8.7-head/gems/rake-0.8.7/bin/rake:31
>> >> >>>>> /Users/MyUsername/.rvm/ree-1.8.7-head/bin/rake:22:in `load'
>> >> >>>>> /Users/MyUsername/.rvm/ree-1.8.7-head/bin/rake:22
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> On Tue, Mar 23, 2010 at 6:06 PM, Brian Quinn <brian@railsdog.com>
>> >> >>>>> wrote:
>> >> >>>>> > I must be doing some weird locally that everyone else is
>> >> >>>>> > missing,
>> >> >>>>> > so
>> >> >>>>> > here's
>> >> >>>>> > the exact steps I just done to get PPE working.
>> >> >>>>> > git clone git://github.com/railsdog/spree.git spree-ppe
>> >> >>>>> > cd spree-ppe
>> >> >>>>> > cp config/database.yml.example config/database.yml
>> >> >>>>> > rake db:bootstrap
>> >> >>>>> > ./script/plugin install
>> >> >>>>> > git://github.com/railsdog/spree-paypal-express.git
>> >> >>>>> > rake db:migrate
>> >> >>>>> > ./script/server
>> >> >>>>> > Once the server starts, login to the admin and create a new
>> >> >>>>> > Payment
>> >> >>>>> > Method
>> >> >>>>> > setting the following fields:
>> >> >>>>> > Name: PayPal
>> >> >>>>> > Environment: Development
>> >> >>>>> > Active: Yes
>> >> >>>>> > Provider: BillingIntegration::PaypalExpress
>> >> >>>>> > Review: unchecked
>> >> >>>>> > Server: test
>> >> >>>>> > No Shipping: unchecked
>> >> >>>>> > Test Mode: checked
>> >> >>>>> > For the actual login details, I've been using the PayPal
>> >> >>>>> > Sandbox
>> >> >>>>> > (API
>> >> >>>>> > Credentials page):
>> >> >>>>> > Login:  API Username (be careful NOT to use the test account
>> >> >>>>> > email
>> >> >>>>> > address
>> >> >>>>> > here)
>> >> >>>>> > Password: API Password
>> >> >>>>> > Signature: Signature
>> >> >>>>> >
>> >> >>>>> > Now try to checkout? Feel free to ping me on the IRC channel if
>> >> >>>>> > u
>> >> >>>>> > see me
>> >> >>>>> > on
>> >> >>>>> > (briandquinn).
>> >> >>>>> > Hope this helps.
>> >> >>>>> > BDQ
>> >> >>>>>
>> >> >>>>> --
>> >> >>>>> You received this message because you are subscribed to the
>> >> >>>>> Google
>> >> >>>>> Groups
>> >> >>>>> "Spree" group.
>> >> >>>>> To post to this group, send email to spree-user@googlegroups.com.
>> >> >>>>> To unsubscribe from this group, send email to
>> >> >>>>> spree-user+unsubscribe@googlegroups.com.
>> >> >>>>> For more options, visit this group at
>> >> >>>>> http://groups.google.com/group/spree-user?hl=en.
>> >> >>>>>
>> >> >>>>
>> >> >>>>
>> >> >>>>
>> >> >>>> --
>> >> >>>> Brian Quinn
>> >> >>>>
>> >> >>>> -------------------------------------------
>> >> >>>> Rails Dog LLC
>> >> >>>> 2 Wisconsin Circle, Suite 700
>> >> >>>> Chevy Chase, MD 20815
>> >> >>>> voice: (301)560-2000
>> >> >>>> -------------------------------------------
>> >> >>>>
>> >> >>>> --
>> >> >>>> You received this message because you are subscribed to the Google
>> >> >>>> Groups
>> >> >>>> "Spree" group.
>> >> >>>> To post to this group, send email to spree-user@googlegroups.com.
>> >> >>>> To unsubscribe from this group, send email to
>> >> >>>> spree-user+unsubscribe@googlegroups.com.
>> >> >>>> For more options, visit this group at
>> >> >>>> http://groups.google.com/group/spree-user?hl=en.
>> >> >>>>
>> >> >>>
>> >> >>> --
>> >> >>> You received this message because you are subscribed to the Google
>> >> >>> Groups "Spree" group.
>> >> >>> To post to this group, send email to spree-user@googlegroups.com.
>> >> >>> To unsubscribe from this group, send email to
>> >> >>> spree-user+unsubscribe@googlegroups.com.
>> >> >>> For more options, visit this group at
>> >> >>> http://groups.google.com/group/spree-user?hl=en.
>> >> >>>
>> >> >>>
>> >> >>
>> >> >> --
>> >> >> You received this message because you are subscribed to the Google
>> >> >> Groups "Spree" group.
>> >> >> To post to this group, send email to spree-user@googlegroups.com.
>> >> >> To unsubscribe from this group, send email to
>> >> >> spree-user+unsubscribe@googlegroups.com.
>> >> >> For more options, visit this group at
>> >> >> http://groups.google.com/group/spree-user?hl=en.
>> >> >>
>> >> >>
>> >> >
>> >>
>> >> --
>> >> You received this message because you are subscribed to the Google
>> >> Groups
>> >> "Spree" group.
>> >> To post to this group, send email to spree-user@googlegroups.com.
>> >> To unsubscribe from this group, send email to
>> >> spree-user+unsubscribe@googlegroups.com.
>> >> For more options, visit this group at
>> >> http://groups.google.com/group/spree-user?hl=en.
>> >>
>> >
>> >
>> >
>> > --
>> > Brian Quinn
>> >
>> > -------------------------------------------
>> > Rails Dog LLC
>> > 2 Wisconsin Circle, Suite 700
>> > Chevy Chase, MD 20815
>> > voice: (301)560-2000
>> > -------------------------------------------
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "Spree" group.
>> > To post to this group, send email to spree-user@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> > spree-user+unsubscribe@googlegroups.com.
>> > For more options, visit this group at
>> > http://groups.google.com/group/spree-user?hl=en.
>> >
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Spree" group.
>> To post to this group, send email to spree-user@googlegroups.com.
>> To unsubscribe from this group, send email to
>> spree-user+unsubscribe@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/spree-user?hl=en.
>>
>
>
>
> --
> Brian Quinn
>
> -------------------------------------------
> Rails Dog LLC
> 2 Wisconsin Circle, Suite 700
> Chevy Chase, MD 20815
> voice: (301)560-2000
> -------------------------------------------
>
> --
> You received this message because you are subscribed to the Google Groups
> "Spree" group.
> To post to this group, send email to spree-user@googlegroups.com.
> To unsubscribe from this group, send email to
> spree-user+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/spree-user?hl=en.
>

--
You received this message because you are subscribed to the Google Groups "Spree" group.
To post to this group, send email to spree-user@googlegroups.com.
To unsubscribe from this group, send email to spree-user+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.

Read More…

Subscribe feeds via e-mail

Blog Archive