rubyonrailsin

A Ruby and Rails talk

Thursday, April 1, 2010

[Rails] Weird date/time incompatibility

by rubyonrailsin 0 comments
I've uploaded my development project to my production server, and am
experiencing an odd effect.

All database find methods in which the date is passed as a param are
coming up nil -- it seems that there's an incompatibility in the date/
time format in there somewhere.

E.g. in the view, obtaining @date from the controller to the index

labs = Lab.all( :conditions => [ "patient_id = ?", id ], :order =>
"drawn DESC" )
@dates = []
labs.each { |lab| @dates << lab.drawn }

Then in the index view,
<% for date in @dates %>...
<%= link_to ... :date => date... %>

Then back in the show method in the controller:
@date = params[ :date ]
then
LabData.first ... :conditions => ... 'labs.drawn' => date
isn't finding it on the production server, but it was on the
development machine.

I've tried fiddling with the time zone settings on the production
server, no luck.

Has anyone encountered such a problem? Any ideas how to fix it?

Many TIA,
Craig

--
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] act as solr reindex

by rubyonrailsin 0 comments
Hi friends

I am using act_as_solr plugin for indexing my database for my application i am having huge volume data (700000 data) for this i am facing a problem it will take more then 6 to 7hrs to index the whole data is that any way to speed up the indexing process please help me friends

--
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: Best way of sorting/grouping objects

by rubyonrailsin 0 comments
Are you looking for something like this?

@pages = Page.all(:order => 'page_type')

"order" is just a SQL ORDER fragment. Then display it in your view
with:

= render :partial => 'page', :collection => @pages

I'm not sure if that's too simplistic of an approach. Does that help?

Angelo

On Apr 1, 3:21 pm, Brent <wejrow...@gmail.com> wrote:
> I have a Model called Page, which has a column called page_type.
> I want to display all pages by page type (which can change/be added).
>
> What is the best way of doing this? I was, in the view looping through
> each page_type, then doing an SQL search for a Page with that
> page_type. But I don't want to call Models through the View..
>
> I tried to create a laid out like this:
>
> @hash[:type1] = {:object1_id => object, :object2_id => object }
> @hash[:type2] = {:object1_id => object, :object2_id => object }
>
> etc.
>
> Then using a partial to go through the types.. but I'm getting errors.
>
> Anyone have a good idea of how to do this?
>
> Thanks

--
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] Best way of sorting/grouping objects

by rubyonrailsin 0 comments
I have a Model called Page, which has a column called page_type.
I want to display all pages by page type (which can change/be added).

What is the best way of doing this? I was, in the view looping through
each page_type, then doing an SQL search for a Page with that
page_type. But I don't want to call Models through the View..

I tried to create a laid out like this:

@hash[:type1] = {:object1_id => object, :object2_id => object }
@hash[:type2] = {:object1_id => object, :object2_id => object }

etc.

Then using a partial to go through the types.. but I'm getting errors.

Anyone have a good idea of how to do this?

Thanks

--
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] Accessing models in "mounted" Rails 3 app

by rubyonrailsin 0 comments
This is the first time I'm working with Engine's in Rails, let alone
in Rails 3. I basically followed these steps to set up the mountable
app: http://blog.dynamic50.com/index.php/2010/02/rails-3-0-mount-multiple-apps-as-engines/

Now that the mountable app is built, I'm moving on to create the
container app. In doing so, however, I am having trouble accessing the
models in the mounted app.

Shop is a model I have the the mounted app, and when I try to access
it in the container app, this is returned:

>> Shop.first
=> NoMethodError: undefined method `first' for Shop:Module

Strangely enough, however, 3 of the mounted app's 19 models are
accessible in the container app. Shop.class.name returns "Module"
while Employee.class.name returns "Class" (Employee is a working model
in the container app).

I'm quite lost on this. Any help is greatly appreciated!

Thanks,
Angelo

--
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: Order processing flow with default setup?

by rubyonrailsin 0 comments
Danisev,
Sure enough. :)

I thought I had tried a new order, but apparently not. Worked just
fine.

Thanks!

Also, Daniel Amselem, that's a great diagram. What tool did you use to
make it?

On Apr 1, 2:17 pm, danisev <anie...@gmail.com> wrote:
> lesfreeman,
>
> I had the same problem and I posted[1] but I didn't find response.
>
> I think that this behaviour only occurs with the loaded sample data
> with rake db:bootstrap.. Try to create a new order and you'll see that
> all the flow is like Brian says.
>
> [1]http://groups.google.com/group/spree-user/browse_thread/thread/1d2a68...

--
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] ActiveRecord::Errors is empty when the record is invalid

by rubyonrailsin 0 comments
I'm running into an interesting problem where an ActiveRecord instance
#valid? returns false, but #errors#full_messages is empty.

This is in one of my models. The code was run in ruby-debug sitting in
one of my validation methods.
(rdb:1) self.publisher_address.valid?
false
(rdb:1) self.publisher_address.errors.full_messages
[]
(rdb:1) a = Address.new(self.publisher_address.attributes)
(rdb:1) a.valid?
false
(rdb:1) a.errors.full_messages
["User can't be blank", "City can't be blank"...]

self.publisher_address is an unsaved Address object, created using
Address.new. So is a, which I just created. Both are invalid, yet a
has error messages like it should but self.publisher_address doesn't.
I can't figure out why.

(rdb:1) self.publisher_address
#<Address id: nil, user_id: nil,...>
(rdb:1) a
#<Address id: nil, user_id: nil,...>
(rdb:1) self.publisher_address.class
Address(id: integer, user_id: integer,...)
(rdb:1) a.class
Address(id: integer, user_id: integer,...)

The #publisher_address method in this model is custom, not an
association. I get the hash of the attributes and do
return Address.new(publisher_address_attributes)

self.publisher_address.errors is an AR::Errors object, but the actual
errors are blank:
(rdb:1) self.publisher_address.errors
#<ActiveRecord::Errors:0x2cddf50 @base=#<Address id: nil, user_id:
nil,...>, @errors=#<OrderedHash {}>>

Has anyone seen empty errors like this before?

--
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] Ruby array, javascript and json issue

by rubyonrailsin 0 comments
Hey all,

I am unable to get a highcharts plugin to render a chart in a rails
application: http://github.com/loudpixel/highcharts-rails

I believe it has something to do with the sql queries to the database
placed in a ruby array, which the javascript is unable to intepret. This
is what I have:

def panels
pass = Student.find_by_sql('SELECT COUNT(*) FROM students WHERE
student_state = 1')
fail = Student.find_by_sql('SELECT COUNT(*) FROM students WHERE
student_state = 2')

student_data = [
{:name => 'Pass', :y => pass},
{:name => 'Fail', :y => fail}
]
pie_label_formatter = '
function() {
if (this.y > 15) return this.point.name;
}'

pie_tooltip_formatter = '
function() {
return "<strong>" + this.point.name + "</strong>: " + this.y + " %";
}'

@pie_chart =
Highchart.pie({
:chart => {
:renderTo => "pie-chart-container",
:margin => [50, 30, 0, 30]
},
:plotOptions => {
:pie => {
:dataLabels => {
:formatter => pie_label_formatter,
:style => {
:textShadow => '#000000 1px 1px 2px'
}
}
}
},
:series => [
{
:type => 'pie',
:data => student_data
}
],
:subtitle => {
:text => 'April 2010'
},
:title => {
:text => 'Student Status Chart'
},
:tooltip => {
:formatter => pie_tooltip_formatter
},
})

Note if I put this: :data => student_data.to_json It actually returns a
json string of my query as text in the browser. Also, if I hard code
values (e.g. :y => 1), it will render the chart properly. However, any
database query will not render the chart properly. So I'm not sure
exactly what the issue is. Any suggestions? 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: Ruby-ldap timeout

by rubyonrailsin 0 comments
Hi Jeff,

Thanks! Every single day I'm amazed by what's possible with Ruby, the more I learn, the less I know, but I guess that's good :)

This led me to the SystemTimer gem. The Timeout class was failing, I guess because it is external call that "cross the barriers", as explained here: http://ph7spot.com/musings/system-timer). SystemTimer works like a charm ;)

Cheers,

Marcelo.

On Thu, Apr 1, 2010 at 1:21 PM, Jeff Lewis <jeff.burly@gmail.com> wrote:
Hi Marcelo,

If that ldap lib doesn't include any timeout settings/params for
timing out long-running ldap calls (which if you're talking about ruby-
net-ldap, it doesn't at this time), then one way would be to wrap
those potentially-long-running calls in ruby's timeout (http://ruby-
doc.org/core/classes/Timeout.html) to at least force a timeout on your
app's side of the process, something like:

 ...
 TIMEOUT_SECS = 10 # or whatever the max should be.

 ...
 timeout_status = nil
 begin
   timeout_status = Timeout::timeout(TIMEOUT_SECS) do
     # do stuff that might take too long ....
   end
 rescue Timeout::Error => te
   # log it and ...
 end
 ...

Jeff


On Apr 1, 11:18 am, Marcelo de Moraes Serpa <celose...@gmail.com>
wrote:
> Hello list,
>
> Does anyone know if ruby-ldap supports connection timeouts? We have LDAP
> integrated into our authentication system to provide LDAP authentication as
> well. It works fine if you input a valid host/port and if the LDAP server is
> responding ok. However, if the host doesn't respond for some reason (could
> be an invalid IP), ruby-ldap hangs there waiting forever, hanging the
> application, something that obvisouly could cause potential problems (since
> it uses passenger).
>
> Any ideas on how to handle that?
>
> Thanks,
>
> Marcelo.

--
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: New to cacheing

by rubyonrailsin 0 comments
Quy Doan wrote:
> Have you added sweeper path ?
> config.load_paths += %W( #{RAILS_ROOT}/app/sweepers)

Yes, and they seem to load ok. I don't get any errors for uninitialized
constants or anything.

Environment.rb
RAILS_GEM_VERSION = '2.3.5' unless defined? RAILS_GEM_VERSION
require File.join(File.dirname(__FILE__), 'boot')
Rails::Initializer.run do |config|
config.load_paths << "#{RAILS_ROOT}/app/sweepers"
config.active_record.observers = :user_observer, :listing_sweeper
end

Production.rb
config.cache_classes = true
config.action_controller.consider_all_requests_local = false
config.action_controller.perform_caching = true
config.action_view.cache_template_loading = true
config.cache_store = :mem_cache_store

config/initializers/cache_money.rb
if RAILS_ENV != 'development'
require 'cache_money'
config = YAML.load(IO.read(File.join(RAILS_ROOT, "config",
"memcached.yml")))[RAILS_ENV]
$memcache = MemCache.new(config)
$memcache.servers = config['servers']
$local = Cash::Local.new($memcache)
$lock = Cash::Lock.new($memcache)
$cache = Cash::Transactional.new($local, $lock)
class ActiveRecord::Base
is_cached :repository => $cache
end
else
class ActiveRecord::Base
def self.index(*args)
end
end
end

Thanks for all the suggestions. Please, if anyone else has any shoot 'em
my way. I'm running late on the app, so I might have to just drop the
cache part (which I don't want to do).


Thanks,
~Jeremy
--
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: Overriding existing controller in extension

by rubyonrailsin 0 comments
Hi Arek,

Just published my article:
http://blog.endpoint.com/2010/03/spree-software-development.html

I've typically found it cleaner to move everything out of the
*extension_name*_extension.rb file, for better organization and for
better repo management with the module includes shown in the article.
The article doesn't include any surprising ruby techniques, but after
working on several projects lately with multiple developers, it has
become pretty important to have well organized code.

~Steph


Arek Flinik wrote:
> Hi,
>
> thanks for quick response. I've actually managed to do exactly the
> same thing (calling class_eval from activate method in my extension
> class -- is it the right place?). I just thought it could be done
> somehow prettier, but it seems it's not possible to extend controllers
> like you can do it with routes or i18n files.
>
> On a side note, it's still possible to use resource_controller's
> methods to make code cleaner and easier to read, also it doesn't
> abandon existing hooks (like create.before which is by default in
> OrdersController). Corresponding code would look as follows:
>
> OrdersController.class_eval do
> create do
> #something
> end
> end
>
> Thank you kindly anyway,
>
> Arek
>
> On Wed, Mar 31, 2010 at 8:33 PM, McKenzie <ryan@souliss.com
> <mailto:ryan@souliss.com>> wrote:
>
> Hi Arek,
>
> You can override a method in your extension by using the following:
>
> OrdersController.class_eval do
> def create
> #insert new action here
> end
> end
>
> Hope that helps
>
> Ryan
>
> On Mar 31, 7:02 pm, Arek Flinik <afli...@gmail.com
> <mailto:afli...@gmail.com>> wrote:
> > Hi,
> >
> > I'd like to create extension which would override just one method in
> > existing controller (in this case, create action in
> OrdersController).
> > After hours of trying i've ran out of ideas on how to do it withous
> > copy-pasting existing controller file. Does anyone have an idea
> on how
> > to do it in nice and clean way?
> >
> > Thanks,
> > Arek Flinik
>
> --
> 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
> <mailto:spree-user@googlegroups.com>.
> To unsubscribe from this group, send email to
> spree-user+unsubscribe@googlegroups.com
> <mailto:spree-user%2Bunsubscribe@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.

Read More…

[Rails] providing feedback to users

by rubyonrailsin 0 comments
I have an application which does some time-consuming work after a form
is submitted.
I'd like to have a little message saying "please wait" but I'm not
sure how to implement that.

I'm thinking somehow you have to send a page to the browser from the
method that is being called by the form.
Sounds like a basic thing but I'm kind of new to RoR.

Any ideas?

-Michael

--
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: Order processing flow with default setup?

by rubyonrailsin 0 comments
lesfreeman,

I had the same problem and I posted[1] but I didn't find response.

I think that this behaviour only occurs with the loaded sample data
with rake db:bootstrap.. Try to create a new order and you'll see that
all the flow is like Brian says.

[1] http://groups.google.com/group/spree-user/browse_thread/thread/1d2a68937f39786a/c87a06c4de0f2d84

--
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: New Spree Site: StickerMule.com

by rubyonrailsin 0 comments
Its using a modified version of toto[1]. Its git based blogging but
client doesn't mind. The other option is to proxy a separate EC2
instance running WordPress. We're doing that for another client that
launches later this month.

Sean Schofield

[1] http://github.com/cloudhead/toto

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

On Thu, Apr 1, 2010 at 5:04 PM, Christopher Maujean <cmaujean@gmail.com> wrote:
> Awesome site, how is the blog integrated?
>
> --
> 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: New Spree Site: StickerMule.com

by rubyonrailsin 0 comments
Awesome site, how is the blog integrated?

--
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] Two controllers with create using the same model

by rubyonrailsin 0 comments
Hello,
I got two controllers, both should create new subscriptions (the name
of the model). Now the thing is how to create in case of the
controller not named subscriptions_controller.rb.
To avoid flooding the list I put both controllers and the view in the
other controller (the one that fails) and the model itself to Pastie:
http://pastie.org/899454
Long story short: why do I get „NoMethodError in
StudentsController#create", why does one controller tries to use the
method from the other controller, and not his own?
Thanks a lot for the reply.
Peter

--
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: questions rufus scheduler

by rubyonrailsin 0 comments
Hm...seems like a better aproach...
How about this schedule to run every day...is it correct? Looks like
strange for me have to define the ":first_at" param...
--
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: jRails, jQuery, Hide (4 arguments)

by rubyonrailsin 0 comments
On Thu, Apr 1, 2010 at 1:11 PM, Ralph Shnelvar <lists@ruby-forum.com> wrote:
>> Is this the right forum to post this to?

Not really, but... :-)
>
> Using firebug and the wonderful http://jsbeautifier.org/
> to unminimize javascripts so that you can actually use Firebug to track
> through the code ... one discovers that the hide is going to
>
> hide: function () {
>    if (!arguments[0] || (arguments[0].constructor == Number ||
> ...
> },

> The answer is that hide:function can take an arbitrary number of
> arguments.   The value of the arguments is stored an array as a local
> variable called "arguments"

> If anyone can point me to the reference that shows what the
> "hide:function" syntax is defined, I would be grateful.

I would think you'd be able to tell more from looking at the code of the
function in question than from any doc, but <http://api.jquery.com/hide/>
would be the place. Assuming this *is* the jQuery 'hide' and not that of
prototype.js :-)

HTH,
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan

--
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: Inventory and Line_Items tables, how are they used

by rubyonrailsin 0 comments
As a newb I feel like I miss obvious things all the time.

So here is the issue I have, the overview_dashboard is looking for a
very old Variant that was deleted awhile back but it was test ordered
a bunch so the dashboard looks at it and thinks it should be there.

The Variant id still lives in both the Inventory_units and Line_items
tables. the question is can I remove items from those tables without
hurting anything else.

My fear is that I delete, one thing, and it will raise another issue,
so I fix that one and it raises a new one.

The fix in my head is do something like
Line_Item.delete_all(:conditions => older than the launch date)
Inventory_Unit.delete_all(:conditions => variant_id == 'id related to
the error I am getting.')

will this cause a problem some where else that anyone knows of?

thanks

On Apr 1, 8:23 am, Morgan Christiansson <google....@mog.se> wrote:
> How did you miss this message in config/database.yml ?
>
> # Warning: The database defined as 'test' will be erased and
> # re-generated from your development database when you run 'rake'.
> # Do not set this db to the same as development or production.
>
> Your .delete_all look fine, although I haven't used spree much myself.
> Just as long as you're not deleting anything that's in use you'll be
> fine. If you're worried you could create a backup first?
>
> A lot can be learned from breaking stuff ;-)
>
> /Morgan
>
> On Mar 31, 4:18 pm, ravenna <t...@ravennainteractive.com> wrote:
>
> > I am pretty new to rails and just wrapped up my first Spree store
> > using 0.8.4.  Just as I thought I was done I discovered an issue.  I
> > did not have a test db so the site was beta tested using the
> > production db.  I know this was a mistake, and a bad call on my
> > part.
>
> > Anyway, now the problem I have is that using the production db and the
> > overview_dashboard has data in it that I don't need.  I cleared out
> > old orders but there are records of old variants in the
> > Inventory_units and Line_Itemtables.  Is there any reason no to
> > delete the old records that I don't need?  If I delete these db items
> > will there be othertablesaffected?
>
> > One of the things I might do is (still learning the right code for it)
> > script/console > Line_items.delete_all( older than the launch date).
> > Not sure the same idea applies to the Inventory_Units table.  Any
> > ideas?
>
> > thanks so much for any help you can give.

--
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: [Radiant-Dev] [Proposal] Join forces to deal with extensions and Rails3

by rubyonrailsin 0 comments
Oohh. Fancy. I like that idea. It would definitely simplify extension
development, assuming I have the ability to define the rsync source as
another directory in my source code tree. Right now, I create
filesystem symbolic links from the extension directory in my test
radiant installation to my extension's source tree.

Sent from my iPhone

On Apr 1, 2010, at 3:33 PM, Sean Schofield <sean.schofield@gmail.com>
wrote:

> I've also toyed with the idea of rsync to move everything over to
> where it needs to be on startup. This means you have duplicate copies
> of everything (migrations, images, stylesheets, etc.) but it would
> significantly improve performance. We have noticed a big time slow
> down with all rake tasks because we're scanning the entire extension
> tree. Having this type of sync would also make stuff way more Heroku
> friendly.
>
> Thoughts?
>
>
> On Tue, Mar 30, 2010 at 11:57 PM, Sean Cribbs <seancribbs@gmail.com>
> wrote:
>> In the current implementation, we hack things to get migrations
>> living
>> in different places, and furthermore, we prefix each migration in the
>> schema_migrations table with the extension name. One of those
>> patches
>> looked like it indicated the engine from which the migration
>> originated, but in general a generator makes most sense.
>>
>> On Tue, Mar 30, 2010 at 8:14 PM, Travis D Warlick Jr
>> <warlickt@operissystems.com> wrote:
>>> Good discussion on the whole plugin migrations problem:
>>> https://rails.lighthouseapp.com/projects/8994/tickets/2058
>>>
>>> Having read through that, I agree that each extension should
>>> generate its
>>> own migrations, at least until the Rails core team implements a
>>> common
>>> solution.
>>>
>>> -- Travis Warlick
>>>
>>> On 3/30/10 6:53 PM, John Long wrote:
>>>>
>>>> On migrations, I'm wondering if we should take a different
>>>> approach.
>>>> Perhaps each extension should just generate the necessary
>>>> migrations?
>>>>
>>>> --
>>>> John Long
>>>> http://wiseheartdesign.com
>>>> http://recursivecreative.com
>>>>
>>>> On Tue, Mar 30, 2010 at 3:05 PM, Sean Schofield
>>>> <sean.schofield@gmail.com> wrote:
>>>>>
>>>>> I have several thoughts on how to approach this but the client
>>>>> work is
>>>>> getting insane again. I'll take a rough stab at this sometime
>>>>> soon
>>>>> and report back what I find. Basically I think we can use
>>>>> Rails3 for
>>>>> most everything. We just need to understand more about the
>>>>> limitations or gotchas that require additional spree/radiant
>>>>> hacks.
>>>>> With any luck its nothing and this is just an exercise in proving
>>>>> that.
>>>>>
>>>>> Sean Schofield
>>>>>
>>>>> On Mon, Mar 29, 2010 at 1:31 PM, Travis D Warlick Jr
>>>>> <warlickt@operissystems.com> wrote:
>>>>>>
>>>>>> I think this is a wonderful idea. In my walk-throughs of new
>>>>>> Rails 3
>>>>>> code,
>>>>>> I've noticed a number of things that Rails now has . Count me
>>>>>> in for
>>>>>> help.
>>>>>>
>>>>>> I'd like to throw out an idea (which may require a new thread,
>>>>>> but I'll
>>>>>> start it here since it's closely related): Radiant/spree as a
>>>>>> plugin
>>>>>> gem. I
>>>>>> have a very large upcoming project. It needs a CMS, but it
>>>>>> also needs
>>>>>> functionality that Radiant isn't the best choice for.
>>>>>> Currently, I'm
>>>>>> forced
>>>>>> to write two apps, which doesn't sit well with me.
>>>>>>
>>>>>> Here's my hypotheses on the benefits of using a plugin gem:
>>>>>>
>>>>>> * Passenger memory savings with smart spawning.
>>>>>> * Built-in support for extension dependencies.
>>>>>> * radiant command offload to rails -m<radiant-install-script>
>>>>>> - easy integration of "radiant-more" via install scripts?
>>>>>> - radiant-more install script repository, similiar to
>>>>>> ext.radiantcms.org?
>>>>>>
>>>>>> Thoughts? Criticisms?
>>>>>>
>>>>>> -- Travis Warlick
>>>>>>
>>>>>> On 3/26/10 7:48 PM, Sean Schofield wrote:
>>>>>>>
>>>>>>> I'd like to introduce myself. My name is Sean Schofield, and
>>>>>>> I'm the
>>>>>>> creator of the Spree e-commerce project. Spree has an extension
>>>>>>> system very similar to the one in Radiant. Actually we based
>>>>>>> our
>>>>>>> extension system on the one in Radiant and received some very
>>>>>>> helpful
>>>>>>> insight from Sean Cribbs at the time.
>>>>>>>
>>>>>>> Now that Rails3 is rolling around we're finding ourselves
>>>>>>> discussing
>>>>>>> the future of extensions. We're planning on taking a serious
>>>>>>> look at
>>>>>>> this issue starting a few weeks from now. One of the guys on
>>>>>>> the
>>>>>>> Spree core team suggested that we might want to reach out to the
>>>>>>> Radiant devs to see if they were interested in working
>>>>>>> together on
>>>>>>> this problem. A side benefit would be that it could become
>>>>>>> easier to
>>>>>>> integrate Spree and Radiant for sites that require both e-
>>>>>>> commerce and
>>>>>>> CMS.
>>>>>>>
>>>>>>> So I wanted to ask if there was any interest in working on a
>>>>>>> common
>>>>>>> solution for implementing Radiant/Spree style extensions in
>>>>>>> Rails3. I
>>>>>>> was thinking we might want to create a separate github project
>>>>>>> for the
>>>>>>> purposes of exploring this. It could serve as a starting
>>>>>>> point for
>>>>>>> exploring the concept but maybe it could evolve into a stand-
>>>>>>> alone gem
>>>>>>> dependency that would work with Radiant or Spree.
>>>>>>>
>>>>>>> Is there any interest in exploring this together from the
>>>>>>> Radiant
>>>>>>> community?
>>>>>>>
>>>>>>> Sean
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> Radiant CMS Dev Mailing List
>>>>>> Post: radiantcms-dev@googlegroups.com
>>>>>> Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com
>>>>>> Group Site: http://groups.google.com/group/radiantcms-dev/
>>>>>>
>>>>>> To unsubscribe from this group, send email to
>>>>>> radiantcms-dev+unsubscribegooglegroups.com or reply to this
>>>>>> email with
>>>>>> the
>>>>>> words "REMOVE ME" as the subject.
>>>>>>
>>>>>
>>>>> --
>>>>> Radiant CMS Dev Mailing List
>>>>> Post: radiantcms-dev@googlegroups.com
>>>>> Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com
>>>>> Group Site: http://groups.google.com/group/radiantcms-dev/
>>>>>
>>>>> To unsubscribe from this group, send email to
>>>>> radiantcms-dev+unsubscribegooglegroups.com or reply to this
>>>>> email with the
>>>>> words "REMOVE ME" as the subject.
>>>>>
>>>>
>>>
>>> --
>>> Radiant CMS Dev Mailing List
>>> Post: radiantcms-dev@googlegroups.com
>>> Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com
>>> Group Site: http://groups.google.com/group/radiantcms-dev/
>>
>> --
>> Radiant CMS Dev Mailing List
>> Post: radiantcms-dev@googlegroups.com
>> Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com
>> Group Site: http://groups.google.com/group/radiantcms-dev/
>
> --
> Radiant CMS Dev Mailing List
> Post: radiantcms-dev@googlegroups.com
> Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com
> Group Site: http://groups.google.com/group/radiantcms-dev/

--
Radiant CMS Dev Mailing List
Post: radiantcms-dev@googlegroups.com
Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com
Group Site: http://groups.google.com/group/radiantcms-dev/

Read More…

[Rails] Re: jRails, jQuery, Hide (4 arguments)

by rubyonrailsin 0 comments
Ralph Shnelvar wrote:
> Is this the right forum to post this to?
>
> In jRails.js there is a call to
> hide
> in which hide takes four parameters.
>
> Where is that hide defined?

To answer my own question ... so for the next poor schmuck who doesn't
know any Javascript ...

Using firebug and the wonderful
http://jsbeautifier.org/
to unminimize javascripts so that you can actually use Firebug to track
through the code ... one discovers that the hide is going to

hide: function () {
if (!arguments[0] || (arguments[0].constructor == Number ||
...
},


The answer is that hide:function can take an arbitrary number of
arguments. The value of the arguments is stored an array as a local
variable called "arguments"

- - --

If anyone can point me to the reference that shows what the
"hide:function" syntax is defined, I would be grateful.
--
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…

[Rails] Re: questions rufus scheduler

by rubyonrailsin 0 comments
Anderson Leite wrote:
> Hello people,
> I am using Rufus scheduler to send emails every day at 4am. To do this I
> am using:
>
> scheduler = Rufus::Scheduler.start_new
> scheduler.every '1d', :first_at => '2010/04/1 04:30' do
> #do something
> end
>
> There is a better way to write this schedule ?
>
>
> By the way, I placed this code at config/environments/production.rb, but
> don't seems to me that is the correct place. Is this the best way to go
> ?

I created a file called config/initializers/task_scheduler.rb which
looks like this:

scheduler = Rufus::Scheduler::PlainScheduler.start_new

scheduler.every "7m" do
sweep_for_reports
#puts "#{Time.now.to_s(:db)} -- Swept for reports."
end

scheduler.cron '22 1 * * *' do
gather_event_data
puts "#{Time.now.to_s(:db)} -- Gathered data."
end

_________
An easier way to write your schedule, probably, is to use cron-style.
4AM every day would be like this (this, mind you, is a matter of
preference!):

scheduler.cron '0 4 * * *' do
send_emails :to => these_guys :about => that
end
--
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…

[spree-user] Re: New Spree Site: StickerMule.com

by rubyonrailsin 0 comments
Write to us at help@stickermule.com & send your artwork. Maybe next
time we run some samples we can just do a few for you. We're more
than happy to help out anyone in the Spree community. Hence the big
discount. :) $50 = you can almost get certain things for free.

On Apr 1, 12:51 pm, "Denis (jumph4x)" <visible....@gmail.com> wrote:
> Oh man, been looking for a place to order custom vinyl stickers for a
> while, problem being I only need a very limited amount (2,4 or tops
> 6). Plus I want rather large sized solid color custom shapes, so I'm
> still not sure where to go for this.
>
> But I'll show this to management, we could use some stickers...
>
> On Apr 1, 11:30 am, Sean Schofield <s...@railsdog.com> wrote:
>
> > We just rolled out a nice new Spree site[1] for one of our RailsDog
> > clients.  You can read more about the announcement[2] on the RailsDog
> > site.  The site is running on Heroku and is using their new "beta" SSL
> > solution.  We'll do a more detailed write up soon.  If you want to
> > order some stickers you can use "SPREE" as a promo code for $50 off
> > (until April 31.)
>
> > Sean Schofield
>
> > [1]http://www.stickermule.com
> > [2]http://railsdog.com/blog/2010/04/announcing-sticker-mule/
>
> > -------------------------------------------
> > 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…

[spree-user] Re: Sagepay (protx) error when trying to use undefined method `authorize'

by rubyonrailsin 0 comments
Hi Paul
I get the above error even with your patch installed
regards
Martin

On Apr 1, 6:32 pm, Paul Callaghan <p...@railsdog.com> wrote:
> Yes: a piece of code needed for AM's SagePay module got removed a while back
> (not by me). I fixed edge yesterday. See change
> 161dcffeb41f27aa10aba0bd63f5e6075d63ac05 (which you can monkey-patch into
> the CC model if you are using a gem)
>
> Paul
>
> On Thu, Apr 1, 2010 at 3:39 PM, lostcaggy <mar...@domeweb.co.uk> wrote:
> > Processing CheckoutsController#update (for 87.127.65.182 at 2010-03-31
> > 19:33:59) [PUT]
> >  Parameters:
> > {"payment_source"=>{"842616225"=>{"number"=>"[FILTERED]",
> > "month"=>"3", "year"=>"2010", "last_name"=>"name",
> > "verification_value"=>"[FILTERED]", "first_name"=>"Mar$
>
> > ArgumentError (The credit card type must be provided):
> >  activemerchant (1.5.1) lib/active_merchant/billing/gateways/
> > sage_pay.rb:207:in `map_card_type'
> >  activemerchant (1.5.1) lib/active_merchant/billing/gateways/
> > sage_pay.rb:197:in `add_credit_card'
> >  activemerchant (1.5.1) lib/active_merchant/billing/gateways/
> > sage_pay.rb:82:in `authorize'
> >  vendor/extensions/payment_gateway/lib/spree/payment_gateway.rb:10:in
> > `authorize'
> >  app/models/creditcard.rb:18:in `process!'
> >  app/models/payment.rb:32:in `process!'
> >  /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/will_paginate-2.3.11/lib/
> > will_paginate/finder.rb:168:in `method_missing'
> >  /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/will_paginate-2.3.11/lib/
> > will_paginate/finder.rb:168:in `method_missing'
> >  app/models/checkout.rb:117:in `process_payment'
>
> > On Mar 31, 9:29 pm, Paul Callaghan <p...@railsdog.com> wrote:
> > > can you paste in the first 20 lines of the backtrace?
>
> > > Paul
>
> > > On Wed, Mar 31, 2010 at 5:26 PM, lostcaggy <mar...@domeweb.co.uk> wrote:
> > > > get error message when trying to make a purchase
> > > > undefined method `authorize'
>
> > > > can someone give me an idea of what I need to do to fix it
> > > > Thanks
> > > > Martin
>
> > > > --
> > > > 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<spree-user%2Bunsubscribe@googlegroups.com>
> > <spree-user%2Bunsubscribe@googlegroups.com<spree-user%252Bunsubscribe@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<spree-user%2Bunsubscribe@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…

[Rails] Re: Rails model design visualization

by rubyonrailsin 0 comments
On Apr 1, 2:12 pm, Michael Pavling <pavl...@gmail.com> wrote:

> Railroad does this (after a fashion)http://railroad.rubyforge.org/

So that rocks. When did the world get so ultra cool? *Many, many*
thanks.
Craig

--
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: [Radiant-Dev] [Proposal] Join forces to deal with extensions and Rails3

by rubyonrailsin 0 comments
I've also toyed with the idea of rsync to move everything over to
where it needs to be on startup. This means you have duplicate copies
of everything (migrations, images, stylesheets, etc.) but it would
significantly improve performance. We have noticed a big time slow
down with all rake tasks because we're scanning the entire extension
tree. Having this type of sync would also make stuff way more Heroku
friendly.

Thoughts?


On Tue, Mar 30, 2010 at 11:57 PM, Sean Cribbs <seancribbs@gmail.com> wrote:
> In the current implementation, we hack things to get migrations living
> in different places, and furthermore, we prefix each migration in the
> schema_migrations table with the extension name.  One of those patches
> looked like it indicated the engine from which the migration
> originated, but in general a generator makes most sense.
>
> On Tue, Mar 30, 2010 at 8:14 PM, Travis D Warlick Jr
> <warlickt@operissystems.com> wrote:
>> Good discussion on the whole plugin migrations problem:
>> https://rails.lighthouseapp.com/projects/8994/tickets/2058
>>
>> Having read through that, I agree that each extension should generate its
>> own migrations, at least until the Rails core team implements a common
>> solution.
>>
>> -- Travis Warlick
>>
>> On 3/30/10 6:53 PM, John Long wrote:
>>>
>>> On migrations, I'm wondering if we should take a different approach.
>>> Perhaps each extension should just generate the necessary migrations?
>>>
>>> --
>>> John Long
>>> http://wiseheartdesign.com
>>> http://recursivecreative.com
>>>
>>> On Tue, Mar 30, 2010 at 3:05 PM, Sean Schofield
>>> <sean.schofield@gmail.com>  wrote:
>>>>
>>>> I have several thoughts on how to approach this but the client work is
>>>> getting insane again.  I'll take a rough stab at this sometime soon
>>>> and report back what I find.  Basically I think we can use Rails3 for
>>>> most everything.  We just need to understand more about the
>>>> limitations or gotchas that require additional spree/radiant hacks.
>>>> With any luck its nothing and this is just an exercise in proving
>>>> that.
>>>>
>>>> Sean Schofield
>>>>
>>>> On Mon, Mar 29, 2010 at 1:31 PM, Travis D Warlick Jr
>>>> <warlickt@operissystems.com>  wrote:
>>>>>
>>>>> I think this is a wonderful idea.  In my walk-throughs of new Rails 3
>>>>> code,
>>>>> I've noticed a number of things that Rails now has .  Count me in for
>>>>> help.
>>>>>
>>>>> I'd like to throw out an idea (which may require a new thread, but I'll
>>>>> start it here since it's closely related): Radiant/spree as a plugin
>>>>> gem.  I
>>>>> have a very large upcoming project.  It needs a CMS, but it also needs
>>>>> functionality that Radiant isn't the best choice for.  Currently, I'm
>>>>> forced
>>>>> to write two apps, which doesn't sit well with me.
>>>>>
>>>>> Here's my hypotheses on the benefits of using a plugin gem:
>>>>>
>>>>> * Passenger memory savings with smart spawning.
>>>>> * Built-in support for extension dependencies.
>>>>> * radiant command offload to rails -m<radiant-install-script>
>>>>>  - easy integration of "radiant-more" via install scripts?
>>>>>  - radiant-more install script repository, similiar to
>>>>> ext.radiantcms.org?
>>>>>
>>>>> Thoughts? Criticisms?
>>>>>
>>>>> -- Travis Warlick
>>>>>
>>>>> On 3/26/10 7:48 PM, Sean Schofield wrote:
>>>>>>
>>>>>> I'd like to introduce myself.  My name is Sean Schofield, and I'm the
>>>>>> creator of the Spree e-commerce project.  Spree has an extension
>>>>>> system very similar to the one in Radiant.  Actually we based our
>>>>>> extension system on the one in Radiant and received some very helpful
>>>>>> insight from Sean Cribbs at the time.
>>>>>>
>>>>>> Now that Rails3 is rolling around we're finding ourselves discussing
>>>>>> the future of extensions.  We're planning on taking a serious look at
>>>>>> this issue starting a few weeks from now.  One of the guys on the
>>>>>> Spree core team suggested that we might want to reach out to the
>>>>>> Radiant devs to see if they were interested in working together on
>>>>>> this problem.  A side benefit would be that it could become easier to
>>>>>> integrate Spree and Radiant for sites that require both e-commerce and
>>>>>> CMS.
>>>>>>
>>>>>> So I wanted to ask if there was any interest in working on a common
>>>>>> solution for implementing Radiant/Spree style extensions in Rails3.  I
>>>>>> was thinking we might want to create a separate github project for the
>>>>>> purposes of exploring this.  It could serve as a starting point for
>>>>>> exploring the concept but maybe it could evolve into a stand-alone gem
>>>>>> dependency that would work with Radiant or Spree.
>>>>>>
>>>>>> Is there any interest in exploring this together from the Radiant
>>>>>> community?
>>>>>>
>>>>>> Sean
>>>>>>
>>>>>
>>>>> --
>>>>> Radiant CMS Dev Mailing List
>>>>> Post:        radiantcms-dev@googlegroups.com
>>>>> Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com
>>>>> Group Site:  http://groups.google.com/group/radiantcms-dev/
>>>>>
>>>>> To unsubscribe from this group, send email to
>>>>> radiantcms-dev+unsubscribegooglegroups.com or reply to this email with
>>>>> the
>>>>> words "REMOVE ME" as the subject.
>>>>>
>>>>
>>>> --
>>>> Radiant CMS Dev Mailing List
>>>> Post:        radiantcms-dev@googlegroups.com
>>>> Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com
>>>> Group Site:  http://groups.google.com/group/radiantcms-dev/
>>>>
>>>> To unsubscribe from this group, send email to
>>>> radiantcms-dev+unsubscribegooglegroups.com or reply to this email with the
>>>> words "REMOVE ME" as the subject.
>>>>
>>>
>>
>> --
>> Radiant CMS Dev Mailing List
>> Post:        radiantcms-dev@googlegroups.com
>> Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com
>> Group Site:  http://groups.google.com/group/radiantcms-dev/
>
> --
> Radiant CMS Dev Mailing List
> Post:        radiantcms-dev@googlegroups.com
> Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com
> Group Site:  http://groups.google.com/group/radiantcms-dev/

--
Radiant CMS Dev Mailing List
Post: radiantcms-dev@googlegroups.com
Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com
Group Site: http://groups.google.com/group/radiantcms-dev/

Read More…

Re: [Rails] Re: how to insert a batch of records into db more efficientl

by rubyonrailsin 0 comments
On Thu, Apr 1, 2010 at 8:50 AM, Fitz Fitz <lists@ruby-forum.com> wrote:
I have been facing this problem for a while now.  ar-extensions is
really good but it doesn't preserve the links between models like
one-to-one many-to-many etc.

Have you tried doing batches via transactions? By default activerecord will make every save operation it's own transaction which adds overhead to the DB in many setups. See ActiveRecord::Transactions::ClassMethods, and put ten or a hundred records at a time in a transaction wrapper and see what you gain. The improvement you see from this depends on the DB engine in use as well as how much the DB is actually the bottleneck versus the processing you're doing application-side per record. I suspect your problem is actually a combination of both DB overhead and unoptimized application logic. You might want to try some profiling of your application to see where the bottleneck really is - at the scale of 1M operations per day it's worth doing some of that.

That's my 2 cents, the disclaimer is that I am by no means a rails expert. Just trying to help out where I can.

jsw

--
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: Ruby-ldap timeout

by rubyonrailsin 0 comments
Hi Marcelo,

If that ldap lib doesn't include any timeout settings/params for
timing out long-running ldap calls (which if you're talking about ruby-
net-ldap, it doesn't at this time), then one way would be to wrap
those potentially-long-running calls in ruby's timeout (http://ruby-
doc.org/core/classes/Timeout.html) to at least force a timeout on your
app's side of the process, something like:

...
TIMEOUT_SECS = 10 # or whatever the max should be.

...
timeout_status = nil
begin
timeout_status = Timeout::timeout(TIMEOUT_SECS) do
# do stuff that might take too long ....
end
rescue Timeout::Error => te
# log it and ...
end
...

Jeff


On Apr 1, 11:18 am, Marcelo de Moraes Serpa <celose...@gmail.com>
wrote:
> Hello list,
>
> Does anyone know if ruby-ldap supports connection timeouts? We have LDAP
> integrated into our authentication system to provide LDAP authentication as
> well. It works fine if you input a valid host/port and if the LDAP server is
> responding ok. However, if the host doesn't respond for some reason (could
> be an invalid IP), ruby-ldap hangs there waiting forever, hanging the
> application, something that obvisouly could cause potential problems (since
> it uses passenger).
>
> Any ideas on how to handle that?
>
> Thanks,
>
> Marcelo.

--
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] Rails model design visualization

by rubyonrailsin 0 comments
On 1 April 2010 20:03, Dudebot <craignied@gmail.com> wrote:
> What I keep looking for--weeks, actually, I'm certain it's out there,
> but I haven't hit on the right set of Google query terms :)--is
> something that will take a Rails set of models and show its design.

Railroad does this (after a fashion)
http://railroad.rubyforge.org/

It's not perfect, but it's good enough for me 90% of the time.

--
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: How to improve rails helpers

by rubyonrailsin 0 comments
On Apr 1, 8:09 am, Nick Sutterer <apoton...@gmail.com> wrote:
> Hey boys, just wanted to let you know I published a post about
> ActiveHelper [1] , a framework I released earlier this week to clean-
> up helpers and put them back to classes using delegation and
> inheritance.

Ugh, I could have really used this 48 hours ago :) Thanks and Kudos.

--
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: Order processing flow with default setup?

by rubyonrailsin 0 comments
Brian,
Thanks for the description. Thats how I thought it should work. Where
I'm getting stuck is not being able to find the control to mark the
shipment as shipped. Here are screens for a paid order:
http://lesfreeman.net/images/shipments_screenshot.png
http://lesfreeman.net/images/shipment_screenshot.png

Am I just totally blind? :)

Les


On Apr 1, 7:24 am, Daniel Salmeron Amselem <daniel.amse...@gmail.com>
wrote:
> I created this diagram:http://www.scribd.com/full/29280640?access_key=key-snlfgl6ypl60q4ffih7
>
> On Apr 1, 11:14 am, Brian Quinn <br...@railsdog.com> wrote:
>
>
>
> > Hey Les,
> > The  default order work-flow is as follows:
>
> > 1) Once a checkout is successfully completed the Order has a state of "New",
> > the orders shipment will have a state of "pending" (and cannot be shipped
> > yet).
> > 2) Capturing the payment (via the Payments tab) will change the Order state
> > to "Paid" and all shipments will also become "ready_to_ship".
> > 3) The shipment can be marked as "shipped" (from the Shipments tab, edit the
> > shipment and click "Ship"). This will also mark the order as "shipped"
> > (provided all shipments for that order are "shipped").
>
> > Note, you can skip the first step by setting the preference
> > Spree::Config[:auto_capture] to true.
>
> > Hope that helps.
>
> > BDQ
>
> > On 1 April 2010 03:29, lesfreeman <lesliefreem...@gmail.com> wrote:
>
> > > Hello,
> > > I'm trying to understand the admin steps to move an order from new to
> > > complete (paid, shipped,etc) I see that I can capture pending
> > > payments, and that a new order automatically has a shipment that's
> > > pending, but I don't see how to tell spree that the order is shipped.
>
> > > Are there any docs for this stuff?
>
> > > Thanks,
> > > Les
>
> > > --
> > > 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<spree-user%2Bunsubscribe@googlegrou ps.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…

[Rails] Rails model design visualization

by rubyonrailsin 0 comments
I'm a fairly visual person, and I have a piece of paper with many
boxes and arrows with labels like "has many" and "belongs to" for my
database models. It's messy, but it works.

What I keep looking for--weeks, actually, I'm certain it's out there,
but I haven't hit on the right set of Google query terms :)--is
something that will take a Rails set of models and show its design.

Does anyone know of such a thing? And if not, what are people using
to visually lay out their model designs?

I've tried MySQL workbench, but it really isn't designed to make
pretty pictures as far as I can tell ;)

TIA,
Craig

--
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: [Radiant-Dev] [ANN] PageFactory extension

by rubyonrailsin 0 comments
On Apr 1, 2010, at 1:29 PM, Josh French wrote:
> There are legitimate use cases for inheritance, but I agree it would be useful to have a remove_all() method or to allow the existing remove() to accept any number of arguments. The latter is cheap, but at the very least you could do any of the following:
>
> remove 'body', 'extended'
> remove superclass.parts.map &:name
> remove Radiant::Config['defaults.page.parts'].split(", ")
>
> (If it wasn't clear in the docs, the base factory gets its parts from Radiant::Config.)

I agree, inheritance is good in some cases, but not in others. The above code looks simple enough.

> But your suggestion implies a larger, unanswered question about the relationship between factories and page classes, and how fixed that relationship should be. I'd prefer to simply identify the hooks you'd need to build that extra layer, and expose them while keeping the base implementation as open as possible. What if I did something like this in the popup:
>
> options_for_select(factories_for(@page))
>
> ...where factories_for() simply returns all factory classes by default? Then you're free override that method. You can limit the allowed factories by @page.page_factory, or @page.class, or ignore @page altogether and base it the current user's role... much more flexible, and it doesn't require others to commit to tying factories to any particular entity.

I had not thought about role restrictions. Sounds good, but what about 2 extensions that try to override that helper method in different ways?
I'd be inclined to have the page answer back with it's available factories (which would be all of them by default) and perhaps add the current_user as an argument (which could be ignored by default) so that other page types could use it.
By doing something like factories_for(@page.factories(current_user)) one could override the #factories method on Page and check for any attribute (such as url, slug, or some added custom field). Then different extensions could do some alias_method trickery to play nice with each other.

I haven't used this, so that's a big grain of salt. But I would think I'd be using this 1) freely with no restriction on selecting the template, 2) based upon the URL where you want certain types of content in a section of your site, or 3) based upon the page type. Perhaps there's a 4th option to check the page's factory, but I don't have the experience with it to think that through right now.
Having worked with a couple of solutions for this problem, how have you typically used this?


PageFactory is perfect for RSS feeds. I've been wanting to create an interface for end users for building feeds but this would certainly get things further along without the need for detailed UI work.


Jim Gay
http://www.saturnflyer.com


--
Radiant CMS Dev Mailing List
Post: radiantcms-dev@googlegroups.com
Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com
Group Site: http://groups.google.com/group/radiantcms-dev/

To unsubscribe, reply using "remove me" as the subject.

Read More…

[Rails] Re: New to cacheing

by rubyonrailsin 0 comments
Have you added sweeper path ?
config.load_paths += %W( #{RAILS_ROOT}/app/sweepers)


On Apr 1, 1:53 am, Jeremy Woertink <li...@ruby-forum.com> wrote:
> Jeremy Woertink wrote:
> > David wrote:
> >> Have you added the sweeper to your list of observers in config/
> >> environment.rb?
>
> > Actually, I had not. I had another sweeper, and my user observer in
> > there. I will try that out, and post back what happens :)
>
> fail :(
>
> config.active_record.observers = :user_observer, :listing_sweeper
>
> This is what I should have, right?
> --
> Posted viahttp://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] New Spree Site: StickerMule.com

by rubyonrailsin 0 comments
On Thu, Apr 1, 2010 at 11:30 AM, Sean Schofield <sean@railsdog.com> wrote:
> We just rolled out a nice new Spree site[1] for one of our RailsDog
> clients.  You can read more about the announcement[2] on the RailsDog
> site.  The site is running on Heroku and is using their new "beta" SSL
> solution.  We'll do a more detailed write up soon.  If you want to
> order some stickers you can use "SPREE" as a promo code for $50 off
> (until April 31.)
>
> Sean Schofield
>
> [1] http://www.stickermule.com
> [2] http://railsdog.com/blog/2010/04/announcing-sticker-mule/
>
Site looks great!

--
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] Ruby-ldap timeout

by rubyonrailsin 0 comments
Hello list,

Does anyone know if ruby-ldap supports connection timeouts? We have LDAP integrated into our authentication system to provide LDAP authentication as well. It works fine if you input a valid host/port and if the LDAP server is responding ok. However, if the host doesn't respond for some reason (could be an invalid IP), ruby-ldap hangs there waiting forever, hanging the application, something that obvisouly could cause potential problems (since it uses passenger).

Any ideas on how to handle that?

Thanks,

Marcelo.

--
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: New Spree Site: StickerMule.com

by rubyonrailsin 0 comments

These guys are a bit different from most sticker sites. I bought a
railsdog laptop skin from another site and it cost me close to $30 for
just one. Sticker Mule charges $125 for 10 of them. Throw in the $50
SPREE code and its $75. So if you're buying more than two laptop
skins you're getting a bunch for free. Not sure about the custom cut
prices but I assume they are equally competitive.

I've also suggested to them about possibly creating a bundle option.
Same logo with a bunch of laptop skins, iphone skins, etc. So for
small companies you can get 4-5 stickers of a bunch of types.

The cool thing is these guys are a massive print operation. Not just
a fly by night print operation with low volume equipment. They have
these programs that can arrange a bunch of orders together as well
(see attached photo.)

Sean Schofield

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

On Thu, Apr 1, 2010 at 1:51 PM, Denis (jumph4x) <visible.h4x@gmail.com> wrote:
> Oh man, been looking for a place to order custom vinyl stickers for a
> while, problem being I only need a very limited amount (2,4 or tops
> 6). Plus I want rather large sized solid color custom shapes, so I'm
> still not sure where to go for this.
>
> But I'll show this to management, we could use some stickers...
>
> On Apr 1, 11:30 am, Sean Schofield <s...@railsdog.com> wrote:
>> We just rolled out a nice new Spree site[1] for one of our RailsDog
>> clients.  You can read more about the announcement[2] on the RailsDog
>> site.  The site is running on Heroku and is using their new "beta" SSL
>> solution.  We'll do a more detailed write up soon.  If you want to
>> order some stickers you can use "SPREE" as a promo code for $50 off
>> (until April 31.)
>>
>> Sean Schofield
>>
>> [1]http://www.stickermule.com
>> [2]http://railsdog.com/blog/2010/04/announcing-sticker-mule/
>>
>> -------------------------------------------
>> 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…

[Rails] Re: Superclass mismatch with Rails 3

by rubyonrailsin 0 comments
"Phil Ostler" <lists@ruby-forum.com> wrote in
message news:7e3f1c8e83517d604d3d7ab7545ffd43@ruby-forum.com...
> I'm currently developing a Rails 2 project that I'd like to migrate
> across to Rail 3. However I'm having real trouble in the first place
> getting Rails 3 to work straight out of the box with a blank project.
>
First a hint. There is a gem named rails3b that somebody in the rails core
team created to pull in the missing dependecies of the Rails gem when using
the rails 3 beta.

Second, Your problem is naming the test application "Rails". That results in
a module named "Rails" that contains your application, but the Rails module
is part of Rails' own namespace.

Thus your config/application.rb is trying to create or re-open a
Rails::Application class that is derived from Rails::Application. I'm not an
expert in that corner of Ruby, but I'm not sure tryingg to have a class
derive from itself could ever be expected to work. Further
Rails::Application is already defined, and it has a different base class, so
ruby has no idea what to do, so it spits out an error and stops.

Try creating a project with a unique name. You should probably find that
works better.


--
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] alias orders in admin section?

by rubyonrailsin 0 comments
Hi,

I'm trying to figure out the best way to create another tab in the
admin system for wholesale orders. My requirement is that wholesale
orders should behave exactly like normal orders except not charge
tax. I've already added a flag on orders for this and the frontend is
working as expected.

So to view the wholesale orders I had hoped there would be a way to
expose a tab of only these orders but only making a route change. But
if I add in _tabs.html.erb:

<%= tab :wholesale_orders, :payments, :creditcard_payments, :shipments
%>

is there a way to set up a route alias for orders to make this work
fairly seemlessly? I tried

admin.resources :wholesale_orders, :controller => :orders

and

admin.resources :orders, :as => :wholesale_orders

without any luck. Does anyone have a better solution?

Thanks in advance, Phil

--
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…

[spree-user] Re: New Spree Site: StickerMule.com

by rubyonrailsin 0 comments
Oh man, been looking for a place to order custom vinyl stickers for a
while, problem being I only need a very limited amount (2,4 or tops
6). Plus I want rather large sized solid color custom shapes, so I'm
still not sure where to go for this.

But I'll show this to management, we could use some stickers...

On Apr 1, 11:30 am, Sean Schofield <s...@railsdog.com> wrote:
> We just rolled out a nice new Spree site[1] for one of our RailsDog
> clients.  You can read more about the announcement[2] on the RailsDog
> site.  The site is running on Heroku and is using their new "beta" SSL
> solution.  We'll do a more detailed write up soon.  If you want to
> order some stickers you can use "SPREE" as a promo code for $50 off
> (until April 31.)
>
> Sean Schofield
>
> [1]http://www.stickermule.com
> [2]http://railsdog.com/blog/2010/04/announcing-sticker-mule/
>
> -------------------------------------------
> 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: [spree-user] Re: Sagepay (protx) error when trying to use undefined method `authorize'

by rubyonrailsin 0 comments
Yes: a piece of code needed for AM's SagePay module got removed a while back (not by me). I fixed edge yesterday. See change 161dcffeb41f27aa10aba0bd63f5e6075d63ac05 (which you can monkey-patch into the CC model if you are using a gem)

Paul

On Thu, Apr 1, 2010 at 3:39 PM, lostcaggy <martin@domeweb.co.uk> wrote:
Processing CheckoutsController#update (for 87.127.65.182 at 2010-03-31
19:33:59) [PUT]
 Parameters:
{"payment_source"=>{"842616225"=>{"number"=>"[FILTERED]",
"month"=>"3", "year"=>"2010", "last_name"=>"name",
"verification_value"=>"[FILTERED]", "first_name"=>"Mar$

ArgumentError (The credit card type must be provided):
 activemerchant (1.5.1) lib/active_merchant/billing/gateways/
sage_pay.rb:207:in `map_card_type'
 activemerchant (1.5.1) lib/active_merchant/billing/gateways/
sage_pay.rb:197:in `add_credit_card'
 activemerchant (1.5.1) lib/active_merchant/billing/gateways/
sage_pay.rb:82:in `authorize'
 vendor/extensions/payment_gateway/lib/spree/payment_gateway.rb:10:in
`authorize'
 app/models/creditcard.rb:18:in `process!'
 app/models/payment.rb:32:in `process!'
 /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/will_paginate-2.3.11/lib/
will_paginate/finder.rb:168:in `method_missing'
 /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/will_paginate-2.3.11/lib/
will_paginate/finder.rb:168:in `method_missing'
 app/models/checkout.rb:117:in `process_payment'


On Mar 31, 9:29 pm, Paul Callaghan <p...@railsdog.com> wrote:
> can you paste in the first 20 lines of the backtrace?
>
> Paul
>
> On Wed, Mar 31, 2010 at 5:26 PM, lostcaggy <mar...@domeweb.co.uk> wrote:
> > get error message when trying to make a purchase
> > undefined method `authorize'
>
> > can someone give me an idea of what I need to do to fix it
> > Thanks
> > Martin
>
> > --
> > 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<spree-user%2Bunsubscribe@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.
Read More…

Subscribe feeds via e-mail

Blog Archive