[Radiant] Extensions with imagery

2009-08-12 Thread John Polling
I'm currently working on a Staff Directory extension at the moment and  
one of the fields for the admin form requires a profile image.  I'm  
hoping to allow admin staff to pick an image from an assets library.   
Is the best extension for this work the Paperclipped extension? Or  
should I just look at using form.file_filed?


Thanks

John
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


RE: [Radiant] Extensions with imagery

2009-08-12 Thread Jordon Bedwell
I would personally go with whichever one has the most updates in the Repo and 
is most recent, both can be monkey patched to do exactly what you want, but you 
certainly don't want to work with dead outdated source. :P

From: radiant-boun...@radiantcms.org [radiant-boun...@radiantcms.org] On Behalf 
Of John Polling [j...@theusualsuspect.com]
Sent: Wednesday, August 12, 2009 7:36 AM
To: radiant@radiantcms.org
Subject: [Radiant] Extensions with imagery

I'm currently working on a Staff Directory extension at the moment and
one of the fields for the admin form requires a profile image.  I'm
hoping to allow admin staff to pick an image from an assets library.
Is the best extension for this work the Paperclipped extension? Or
should I just look at using form.file_filed?

Thanks

John
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] Radiant Database Mailer saves mail attachments

2009-08-12 Thread Cristian Duma
A few weeks ago someone asked if database_mailer saves the e-mail
attachments. Well, it does
nowhttp://blog.aissac.ro/2009/08/12/radiant-database-mailer-extension-uploads-files-using-paperclip/,
using paperclipp.
check out the source code on
githubhttp://github.com/Aissac/radiant-database-mailer-extensionor
the extension's
official page  http://blog.aissac.ro/radiant/database-mailer-extension/

Cristi
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Caching problem with SNS extension?

2009-08-12 Thread Gus Gollings
Clinton R. Nixon wrote:
 On Tue, Jul 28, 2009 at 12:18 PM, Jørn Schou-Rodejsr at malamute.dk wrote:
  I have a site running Radiant 0.8 with the head revision of the SNS
  extension from the radiant hub, and I am experiencing a problem with
  assets only being deliveried correctly to every second request.
 
  When I navigate directly to my main stylesheet[1] in my browser, I get
  the stylesheet or a completely blank screen (with Content-Length: 0 in
  the HTTP headers). Pressing F5 to redo the request, I get the opposite.
  Every second request gives my the stylesheet, every other a blank
  response.
 
  Does anyone know whats going on? How I done something wrong in my setup?

 I am having the same problem, but have not investigated it. If I find
 anything, I'll let you know.

I was having this trouble using Radiant 0.8 with Passenger when
viewing the site with Safari 4 or Opera 9. (Safari 3 and Firefox
didn't exhibit the problem behavior).

The problem would go away if I used Mongrel.

I also found that the problem would go away if I used Passenger with
Apache mod_xsendfile installed. Steps to install and configure are
below:

# on the server, as root
wget http://tn123.ath.cx/mod_xsendfile/mod_xsendfile-0.9.tar.gz
tar zxvf mod_xsendfile-0.9.tar.gz
cd mod_xsendfile-0.9
apxs -cia mod_xsendfile.c

# add to your VirtualHost directive
XSendFile on
XSendFileAllowAbove on

# activate in config/environment.rb
config.middleware.use(::Radiant::Cache, {:use_x_sendfile = true})

Regards,

Gus
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Radiant Instalation Help...

2009-08-12 Thread Jason Bray
Jim,

Thanks for the urb clarification...  When I check my version it kicks back
1.3.5... which I think is the latest version...



--
Jason Bray
--


On Tue, Aug 11, 2009 at 8:29 PM, Jim Gay j...@saturnflyer.com wrote:

 Jason,

 Open a Terminal window and type: irb
 That's irb. (Type exit or quit end it)
 script/console is similar, but it does it within the Rails environment for
 your application.

 Going back to Jeff's original request:

  run gem -v, what do you get back?


 Have you opened a Terminal and typed: gem -v

 If it doesn't say 1.3.1, try this
 http://blog.libinpan.com/2008/04/update-rubygems-to-new-version-on-leopard/

 -Jim


 On Aug 11, 2009, at 8:18 PM, Jason Bray wrote:

  Jeff,

 Sorry it took me awhile to check on your suggestions...

 My RubyGem version is: 1.3.5

 I wasn't sure what irb was so I went diggin' through one of my ROR
 books...  you get irb running via script/console... when I run that I get
 this message:

 /Users/jaybray/Sites/example/config/boot.rb:138:in `load_rubygems':

 undefined method `=' for nil:NilClass (NoMethodError)
   from /Users/jaybray/Sites/example/config/boot.rb:100:in
 `load_initializer'
   from /Users/jaybray/Sites/example/config/boot.rb:61:in `run'
   from /Users/jaybray/Sites/example/config/boot.rb:19:in `boot!'
   from /Users/jaybray/Sites/example/config/boot.rb:161:in `top
 (required)'
   from script/console:2:in `require'
   from script/console:2:in `main'


 I also tried running script/console --sandbox which didn't change
 anything.
 My other Rails apps I've built for the purposes of learning have worked
 fine.  For some reason Radiant is being cranky.

 Again, I appreciate your time and effort...

 --
 Jason Bray
 --


 On Fri, Aug 7, 2009 at 8:18 AM, Jeff Casimir j...@casimircreative.com
 wrote:

  Jason,

 Well, those are good steps that you've taken.

 I'm looking at my boot.rb file and the load_rubygems method.  It
 looks to me like the issue is with your RubyGems.  If you're at the
 command line and run gem -v, what do you get back?  It should be
 something like 1.3.1.

 Next, fire up irb and enter this line:




 It should spit back 1.3.1.  Let me know what it says if different.

 If you want to try just disabling the check that's creating the error,
 change line 139 from unless rubygems_version = '0.9.4' to unless
 false and try to start it up.

 - Jeff

 ---
 Jeff Casimir
 Jumpstart Lab by Casimir Creative, LLC
 http://jumpstartlab.com
 @jumpstartlab on twitter
 Rails Jumpstart - Aug 1516 - Beginning Web Application Development
 JavaScript Jumpstart - Sep 12 - Intermediate Javascript Programming  UI
 Robotics Jumpstart - Sep 13 - Intro to Robotics with Lego Mindstorms NXT



 On Thu, Aug 6, 2009 at 9:16 PM, Jason Brayradiant...@jaybray.com
 wrote:

 Jeff,

 Thanks for the advice.  I am not using the built-in Ruby.  I rolled my

 own

 using the Hivelogic instructions for Leopard.  I did double check to
 make
 sure everything was updated properly and everything appears to be.  I
 started the Radiant install again from the beginning, made it all the
 way
 through until running script/server and error message.

 I'm not sure how installing Enterprise Ruby will help so I may not try

 that

 yet.  I'm sure the main error here is btwn the chair and keyboard.  My
 inexperience with this framework is likely the root.  I'll probably put
 Radiant on the back burner for awhile until I have a better grasp of

 Rails.


 I just wanted to say thanks.

 --
 Jason Bray
 --


 On Thu, Aug 6, 2009 at 9:44 AM, Jeff Casimir j...@casimircreative.com
 wrote:

  Jason,

 Are you using Leopard's built-in Ruby distribution?  I remember there
 being some complications there.  You might try to update your version
 of gems (sudo gem update --system) and all your gems (sudo gem
 update).  If that doesn't get you anywhere, you might consider
 installing a newer version of ruby like Ruby Enterprise Edition:
 http://www.rubyenterpriseedition.com/

 - Jeff

 ---
 Jeff Casimir
 Jumpstart Lab by Casimir Creative, LLC
 http://jumpstartlab.com
 @jumpstartlab on twitter
 Rails Jumpstart - Aug 1516 - Beginning Web Application Development
 JavaScript Jumpstart - Sep 12 - Intermediate Javascript Programming 
 UI
 Robotics Jumpstart - Sep 13 - Intro to Robotics with Lego Mindstorms
 NXT



 On Wed, Aug 5, 2009 at 9:17 PM, Jason Brayradiant...@jaybray.com

 wrote:

  Greetings,

 I'm attempting to install Radiant on OSX Leopard.  I'm also a Rails

 noob

  just to get that out there.  I followed these installation

 instructions:

  http://wiki.github.com/radiant/radiant/installing-on-mac-os

 Everything went flawlessly until I ran - ./script/server

 I get this message in terminal:
 /Users/jaybray/Sites/example/config/boot.rb:138:in `load_rubygems':
 undefined method `=' for nil:NilClass (NoMethodError)
  from /Users/jaybray/Sites/example/config/boot.rb:100:in
 `load_initializer'
  from /Users/jaybray/Sites/example/config/boot.rb:61:in `run'
  from