[Radiant] Re: Third-party hosting for Radiant 0.9.1

2011-07-17 Thread Cleverlemming

I host several sites with Webbynode. You need to be comfortable
administrating your own server. They support their infrastructure but
not your app.

Heroku is also a good choice, if you don't need an SSL cert, and is a
little easier to use.

Pete


[Radiant] Re: undefined method `name' for RedCloth:String

2011-07-05 Thread Cleverlemming
Not sure if you solved this one yet or not but here's the link I used
to solve it:

http://stackoverflow.com/questions/6065015/undefined-method-name-for-systemtimerstring/6282459#6282459

Pete


[Radiant] Re: Error with Paperclip 2.3.12

2011-07-05 Thread Cleverlemming
Looks like a problem with rails trying to autoload a missing constant
that's already loaded. You don't mention the version of Radiant that
you're using, but the simplest fix is probably to load up the version
of Radiant that you're not using (rc 2 or .91) with a default template
and using RVM to create a dedicated gem set for testing purposes. Some
of the thorniest problems in configuring Radiant are versioning issues
involving gem dependencies. Things will get better when Radiant moves
to Rails 3. If you're not using RVM, it can be very helpful as it
allows you eliminate the gems and gem versions that you might have
installed globally for other applications.

You could also try posting in the paperclip group (http://
groups.google.com/group/paperclip-plugin).


[Radiant] Re: How can I have a foolproof backup?

2011-07-01 Thread Cleverlemming
1. Back up your production database daily locally and to Amazon S3
using DB2s3 (https://github.com/xaviershay/db2s3).
2. Host your images on amazon s3.
3. Write a deployment script for every step involved in redeploying
your application to server. Document gem vesions and sources.

Uploading your application by FTP is generally going to be much slower
than reinstalling the application at the command line and restoring
the database. You will also have to manually fix problems with
directory permissions.

I use an external service like gmail for application mail so I don't
have to worry about backing up and restoring mail archives.

-Pete


[Radiant] Re: Mailer extension error when submitting form

2011-06-20 Thread Cleverlemming
I think the radiant mailer extension creates a mail object, which the
actionmailer gem sends. If Actionmailer doesn't write a sent mail
message to the log file (  logger.info  Sent mail to
#{Array(recipients).join(', ')} ) and there are no subsequent
Net::SMTP errors, it seems like the issue is in how you've configured
the mailer extension. Be sure the field names in the form and the
email page part line up exactly.

You can try inserting some additional debugging in the mailer
extension to see where the failure occurs (http://jeremyhubert.com/
articles/debugging-in-rails.html) and then tail the development log in
another terminal window.



[Radiant] Re: How-To on disabling caching in Radiant

2011-06-18 Thread Cleverlemming
I use the the PageOptions extension to handle caching on a per-page
basis:

https://github.com/sandipransing/radiant-page_options-extension/tree/


[Radiant] Re: Mailer extension error when submitting form

2011-06-18 Thread Cleverlemming
I'd start by taking a look at log/development.log and seeing if
there's some useful information you can post there. Also, it'd be good
to know if the page is actually sending an email before it throws an
error. If the mail is being sent, it could be an issue with
redirect_to: on the mailer page part.

Here's a good tutorial: 
http://www.banane.com/2009/10/27/radiant-mailer-extension-installation-basics/

Pete


[Radiant] Re: Howto integrate Radiant in existing application

2011-06-17 Thread Cleverlemming
I have a site that's about to launch that runs both Radiant and Spree.
I used a shop.domain.com subdirectory for the Spree store and the same
graphic theme for both. It appears to be a single application to end-
users, and the lack of shared authentication isn't a problem as having
two databases for admins and designers is actually useful in
compartmentalizing who works on what part of the site.

Cheers,
Pete


[Radiant] Re: Giving a presentation on Radiant (Boston)

2011-06-17 Thread Cleverlemming

I'd mention that one of the first companies to start producing
commercial sites for national brands with Radiant was Digital Pulp in
NY, way back in 2008. The fact that the early adopters were talented
designers who needed to launch beautiful sites quickly speaks volumes
about how easy it is to implement a template in Radiant. It's really
great for marketing communications projects. I would consider Radiant
to be better-suited for end-users with some design/development
skills.

There's a podcast (http://radiantcms.org/podcast/) from way back in
2008 with the guys from Digital Pulp. It'd be interesting to give them
a shout and see what they're up to today.


[Radiant] Radiant Tags and Tiny Paper RTF Editor

2011-06-16 Thread Cleverlemming
Hail Caesars,

Is there a trick to prevent the Tiny Paper RTF Editor from turning
Radiant tags into gibberish? I have no problem turning off filters to
add a custom tag but it's too much to ask of my end users. For
example, entering h2r:title //h2 in the html source editor for
Tiny Paper/RTF filter yields this: h2hr title=lt;r:title /gt; /
/h2. Seems like somewhere there's a list of reg expressions that
the filter knows to escape and radiant tags aren't on the list.

Thanks,
Pete


[Radiant] Re: Conditional on URL Subdomain?

2011-01-23 Thread Cleverlemming
Good catch. Looks like I can start with it as a basis for my
extension.

Thanks.

Pete

On Jan 23, 12:00 am, William Ross w...@spanner.org wrote:
 On 23 Jan 2011, at 02:30, Cleverlemming wrote:

  Hail Caesars,

  I see how to use the r:if_url matches tag to server content
  conditionally based on URL, but what about subdomains in the base URL?
  I have a site with several, like military.mysite.com and
  oregon.mysite.com. I'd like the header image and a few other little
  details to change, based on subdomain, but this doesn't warrant
  creating separate sites as most of the content is shared. Do I need to
  make a custom tag?

 Have a look at

        https://github.com/spanner/radiant-mobile-extension

 It's not quite what you're after but should point in the right direction.

 will


[Radiant] Error Creating New Page 0.91 ArgumentError (interning empty string):

2011-01-23 Thread Cleverlemming
Hail Caesars!

I received a 500 Internal Server Error when trying to create a new
page.  Looking through the stack trace, the problem turned out to be
that there was no default page.status set in Radiant::Config. I set it
back to draft and all is well again.

Maybe it makes sense to default to Draft in status.rb if no options
are passed to the intialize method? I

Hope this helps somebody.

Peace,
Pete

Processing Admin::PagesController#new (for 184.100.170.199 at
2011-01-24 00:29:11) [GET]
  Parameters: {page_class=Page, page_id=1, action=new,
controller=admin/pages}

ArgumentError (interning empty string):
  vendor/radiant/app/models/status.rb:14:in `intern'
  vendor/radiant/app/models/status.rb:14:in `[]'
  vendor/radiant/app/models/status.rb:14:in `each'
  vendor/radiant/app/models/status.rb:14:in `find'
  vendor/radiant/app/models/status.rb:14:in `[]'
  vendor/radiant/app/models/page.rb:274:in `new_with_defaults'
  /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/will_paginate-2.3.15/lib/
will_paginate/finder.rb:170:in `method_missing'
  vendor/radiant/app/controllers/admin/pages_controller.rb:21:in `new'
  compass (0.10.6) lib/compass/app_integration/rails/actionpack2/
action_controller.rb:7:in `process'
  vendor/radiant/vendor/plugins/haml/rails/./lib/sass/plugin/rack.rb:
41:in `call'
  passenger (3.0.1) lib/phusion_passenger/rack/request_handler.rb:
96:in `process_request'
  passenger (3.0.1) lib/phusion_passenger/abstract_request_handler.rb:
513:in `accept_and_process_next_request'
  passenger (3.0.1) lib/phusion_passenger/abstract_request_handler.rb:
274:in `main_loop'
  passenger (3.0.1) lib/phusion_passenger/classic_rails/
application_spawner.rb:321:in `start_request_handler'


[Radiant] Conditional on URL Subdomain?

2011-01-22 Thread Cleverlemming
Hail Caesars,

I see how to use the r:if_url matches tag to server content
conditionally based on URL, but what about subdomains in the base URL?
I have a site with several, like military.mysite.com and
oregon.mysite.com. I'd like the header image and a few other little
details to change, based on subdomain, but this doesn't warrant
creating separate sites as most of the content is shared. Do I need to
make a custom tag?

Thanks!