Re: [Radiant] tags extension

2009-01-28 Thread Simon Josi
Maybe this could work:
http://github.com/Aissac/radiant-extensions-extension

greets
/simon

On Wed, 28 Jan 2009 12:14:42 +1100
Enrico Teotti enrico.teo...@gmail.com wrote:

 Hi,
 I need to have the tag list for each page coming out of:
 r:children:each limit=15 order=desc
 
 I'd use a:
 r:tag_cloud scope=r:url / /
 
 but since that's not allowed by radius I am now clueless. How would
 you do it? Is anybody doing such a thing?
 Cheers,
 Enrico


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

Re: [Radiant] How to check out the 0.6.9 branch?

2009-01-28 Thread Sean Cribbs

First, delete that branch, then checkout the tag.

git branch -D 0.6.9
git checkout 0.6.9

Sean

Simon Rönnqvist wrote:

  Hi!

I'm installing a new Rails site, and since I need the multi-site 
extension I'm unable to use 0.7.0 yet. I tried checking out the 0.6.9 
branch by doing this:


git clone git://github.com/radiant/radiant.git
git checkout -b 0.6.9

But once Radiant is up 'n running it says This site was made with 
Ruby and is powered by Radiant CMS version 0.7.0. in the footer. How 
do I check out the 0.6.9 branch?


  cheers, Simon
___
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


Re: [Radiant] How to check out the 0.6.9 branch?

2009-01-28 Thread Jeroen Janssen
Hi Simon,

git clone will clone the radiant repository, and put you in the
current 'master' (0.7.0) tree.

git checkout -b will actually create a new branch based upon your
current working tree (so you actually created a 'new' branch there)
instead of checking out the 0.6.9 'tag'.

Jeroen

On Wed, Jan 28, 2009 at 3:54 PM, Simon Rönnqvist si...@iki.fi wrote:
  Hi!

 I'm installing a new Rails site, and since I need the multi-site extension
 I'm unable to use 0.7.0 yet. I tried checking out the 0.6.9 branch by doing
 this:

 git clone git://github.com/radiant/radiant.git
 git checkout -b 0.6.9

 But once Radiant is up 'n running it says This site was made with Ruby and
 is powered by Radiant CMS version 0.7.0. in the footer. How do I check out
 the 0.6.9 branch?

  cheers, Simon
 ___
 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] Template field as link: possible?

2009-01-28 Thread Nate Turnage
There is a field in one of my templates that contains a link to an external
page and I would like to know how I can use that field in an a href or an
r:link / kind of tag.

I need something like this: a href=r:content part=link /r:title
//a

Is this possible in any way?



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


Re: [Radiant] Template field as link: possible?

2009-01-28 Thread Sean Cribbs
I assume you're talking about the templates extension.  And yes, all you 
need to do is put the code you typed in the appropriate place of the 
structure part of the template.


Sean

Nate Turnage wrote:

There is a field in one of my templates that contains a link to an external
page and I would like to know how I can use that field in an a href or an
r:link / kind of tag.

I need something like this: a href=r:content part=link /r:title
//a

Is this possible in any way?



~Nate
___
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


Re: [Radiant] Template field as link: possible?

2009-01-28 Thread Nate Turnage
On Wed, Jan 28, 2009 at 10:34 AM, Sean Cribbs seancri...@gmail.com wrote:

 I assume you're talking about the templates extension.  And yes, all you
 need to do is put the code you typed in the appropriate place of the
 structure part of the template.



OMG! It does work. I thought that the quotes of the tag would interfere with
the href tag and I would need some other extension for it to work. This
rocks!



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


Re: [Radiant] Template field as link: possible?

2009-01-28 Thread Mohit Sindhwani

Nate Turnage wrote:

On Wed, Jan 28, 2009 at 10:34 AM, Sean Cribbs seancri...@gmail.com wrote:

  

I assume you're talking about the templates extension.  And yes, all you
need to do is put the code you typed in the appropriate place of the
structure part of the template.





OMG! It does work. I thought that the quotes of the tag would interfere with
the href tag and I would need some other extension for it to work. This
rocks!

  

So did I!  So, I wrote this for you:
 tag 'local:natelink' do |tag|
   part = tag.locals.page.parts.find_by_name('link')
   url = part.content
   a href=\#{url}\This is a link/a
 end

Darn!

Cheers,
Mohit.
1/29/2009 | 1:12 AM.

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


Re: [Radiant] Template field as link: possible?

2009-01-28 Thread Nate Turnage
On Wed, Jan 28, 2009 at 11:12 AM, Mohit Sindhwani t...@onghu.com wrote:


 So did I!  So, I wrote this for you:
  tag 'local:natelink' do |tag|
   part = tag.locals.page.parts.find_by_name('link')
   url = part.content
   a href=\#{url}\This is a link/a
  end

 Darn!


Thanks anyway. This really makes me think that I need to bone up on my rails
fu and ruby fu.

I need about 2 hours more per day.


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


Re: [Radiant] Template field as link: possible?

2009-01-28 Thread Sean Cribbs
Radius uses a really naive parsing method -- regular expressions -- so 
it won't try to match the a tag, and your Radius tags can appear anywhere.


Nate Turnage wrote:

On Wed, Jan 28, 2009 at 11:12 AM, Mohit Sindhwani t...@onghu.com wrote:

  

So did I!  So, I wrote this for you:
 tag 'local:natelink' do |tag|
  part = tag.locals.page.parts.find_by_name('link')
  url = part.content
  a href=\#{url}\This is a link/a
 end

Darn!




Thanks anyway. This really makes me think that I need to bone up on my rails
fu and ruby fu.

I need about 2 hours more per day.


~Nate
___
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] paperclipped

2009-01-28 Thread Steven Southard
I really like this extension.  I can see a lot of good in it that my  
clients would like but not being able to delete files is a problem.   
It works great on my Mac but then when I upload it to Joyent's Solaris  
servers it just doesn't delete all the files.  I don't really  
understand what the problem is.  It's something to do with the folder  
or files existing maybe when they shouldn't be.  It seems to be  
related more to the environment and paperclip then the extension itself.


The problem is I get an application error and in the logs it says:

Errno::EEXIST (File exists - /users/home//web/public/assets/7):
/usr/local/lib/ruby/1.8/fileutils.rb:264:in `rmdir'
/usr/local/lib/ruby/1.8/fileutils.rb:264:in `rmdir'
/usr/local/lib/ruby/1.8/fileutils.rb:263:in `each'
/usr/local/lib/ruby/1.8/fileutils.rb:263:in `rmdir'
/vendor/extensions/paperclipped/vendor/plugins/paperclip/lib/ 
paperclip/storage.rb:62:in `flush_deletes'
/vendor/extensions/paperclipped/vendor/plugins/paperclip/lib/ 
paperclip/storage.rb:52:in `each'
/vendor/extensions/paperclipped/vendor/plugins/paperclip/lib/ 
paperclip/storage.rb:52:in `flush_deletes'
/vendor/extensions/paperclipped/vendor/plugins/paperclip/lib/ 
paperclip.rb:301:in `send'
/vendor/extensions/paperclipped/vendor/plugins/paperclip/lib/ 
paperclip.rb:301:in `destroy_attached_files'


I wish I understood this better or knew how to work around it.  On my  
mac it seems to delete all the files and the folder without issue.  On  
Joyent it deletes one file and causes an application error.  If I  
refresh 4 times it will delete all the files and continue on but  
without deleting the folder.


I'm using the most recent release of paperclipped and I've tried it  
with 0.6.9 and .7rc2 but it doesn't work.  I can't believe I'm the  
only experiencing this problem or at least that will experience it.


It's a good extension and to those out there that are able to use it  
I'm envious.  I hope someone is able to fix this someday and I'll try  
it again.


By the way, is there a clean way to remove the paperclipped extension?

Steven


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


Re: [Radiant] paperclipped

2009-01-28 Thread C. R. Oldham

Steven,

Thanks for the detailed stacktrace.  This is interesting, it really  
sounds like a difference between Solaris and the Mac.  If I have a  
minute today I'll look at the paperclipped source and see if I can  
figure out what's going on.  It's acting like the extension is trying  
to delete the directory before all the files have been removed.  Maybe  
Solaris throws an EEXIST when an rmdir is attempted on a non-empty  
directory but Linux/Mac throws something else, or nothing.


Unfortunately I don't have access to a Solaris machine to test on.

Solaris has a reputation for being different--most of the Mac and  
Linux command line tools and libraries are pretty similar, but the  
Solaris libraries have been their own forever.  The first thing I  
would do when encountering a Solaris box that I was responsible for  
was to install most of the Gnu suite.


--cro

On Jan 28, 2009, at 11:29 AM, Steven Southard wrote:

I really like this extension.  I can see a lot of good in it that my  
clients would like but not being able to delete files is a problem.   
It works great on my Mac but then when I upload it to Joyent's  
Solaris servers it just doesn't delete all the files.  I don't  
really understand what the problem is.  It's something to do with  
the folder or files existing maybe when they shouldn't be.  It seems  
to be related more to the environment and paperclip then the  
extension itself.


The problem is I get an application error and in the logs it says:

Errno::EEXIST (File exists - /users/home//web/public/assets/7):
   /usr/local/lib/ruby/1.8/fileutils.rb:264:in `rmdir'
   /usr/local/lib/ruby/1.8/fileutils.rb:264:in `rmdir'
   /usr/local/lib/ruby/1.8/fileutils.rb:263:in `each'
   /usr/local/lib/ruby/1.8/fileutils.rb:263:in `rmdir'
   /vendor/extensions/paperclipped/vendor/plugins/paperclip/lib/ 
paperclip/storage.rb:62:in `flush_deletes'
   /vendor/extensions/paperclipped/vendor/plugins/paperclip/lib/ 
paperclip/storage.rb:52:in `each'
   /vendor/extensions/paperclipped/vendor/plugins/paperclip/lib/ 
paperclip/storage.rb:52:in `flush_deletes'
   /vendor/extensions/paperclipped/vendor/plugins/paperclip/lib/ 
paperclip.rb:301:in `send'
   /vendor/extensions/paperclipped/vendor/plugins/paperclip/lib/ 
paperclip.rb:301:in `destroy_attached_files'


I wish I understood this better or knew how to work around it.  On  
my mac it seems to delete all the files and the folder without  
issue.  On Joyent it deletes one file and causes an application  
error.  If I refresh 4 times it will delete all the files and  
continue on but without deleting the folder.


I'm using the most recent release of paperclipped and I've tried it  
with 0.6.9 and .7rc2 but it doesn't work.  I can't believe I'm the  
only experiencing this problem or at least that will experience it.


It's a good extension and to those out there that are able to use it  
I'm envious.  I hope someone is able to fix this someday and I'll  
try it again.


By the way, is there a clean way to remove the paperclipped extension?

Steven


___
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


Re: [Radiant] paperclipped

2009-01-28 Thread C. R. Oldham

Steven,

Also, can you send us a server log excerpt for this delete?

--cro

On Jan 28, 2009, at 11:43 AM, C. R. Oldham wrote:


Steven,

Thanks for the detailed stacktrace.  This is interesting, it really  
sounds like a difference between Solaris and the Mac.  If I have a  
minute today I'll look at the paperclipped source and see if I can  
figure out what's going on.  It's acting like the extension is  
trying to delete the directory before all the files have been  
removed.  Maybe Solaris throws an EEXIST when an rmdir is attempted  
on a non-empty directory but Linux/Mac throws something else, or  
nothing.


Unfortunately I don't have access to a Solaris machine to test on.

Solaris has a reputation for being different--most of the Mac and  
Linux command line tools and libraries are pretty similar, but the  
Solaris libraries have been their own forever.  The first thing I  
would do when encountering a Solaris box that I was responsible for  
was to install most of the Gnu suite.


--cro

On Jan 28, 2009, at 11:29 AM, Steven Southard wrote:

I really like this extension.  I can see a lot of good in it that  
my clients would like but not being able to delete files is a  
problem.  It works great on my Mac but then when I upload it to  
Joyent's Solaris servers it just doesn't delete all the files.  I  
don't really understand what the problem is.  It's something to do  
with the folder or files existing maybe when they shouldn't be.  It  
seems to be related more to the environment and paperclip then the  
extension itself.


The problem is I get an application error and in the logs it says:

Errno::EEXIST (File exists - /users/home//web/public/assets/7):
  /usr/local/lib/ruby/1.8/fileutils.rb:264:in `rmdir'
  /usr/local/lib/ruby/1.8/fileutils.rb:264:in `rmdir'
  /usr/local/lib/ruby/1.8/fileutils.rb:263:in `each'
  /usr/local/lib/ruby/1.8/fileutils.rb:263:in `rmdir'
  /vendor/extensions/paperclipped/vendor/plugins/paperclip/lib/ 
paperclip/storage.rb:62:in `flush_deletes'
  /vendor/extensions/paperclipped/vendor/plugins/paperclip/lib/ 
paperclip/storage.rb:52:in `each'
  /vendor/extensions/paperclipped/vendor/plugins/paperclip/lib/ 
paperclip/storage.rb:52:in `flush_deletes'
  /vendor/extensions/paperclipped/vendor/plugins/paperclip/lib/ 
paperclip.rb:301:in `send'
  /vendor/extensions/paperclipped/vendor/plugins/paperclip/lib/ 
paperclip.rb:301:in `destroy_attached_files'


I wish I understood this better or knew how to work around it.  On  
my mac it seems to delete all the files and the folder without  
issue.  On Joyent it deletes one file and causes an application  
error.  If I refresh 4 times it will delete all the files and  
continue on but without deleting the folder.


I'm using the most recent release of paperclipped and I've tried it  
with 0.6.9 and .7rc2 but it doesn't work.  I can't believe I'm the  
only experiencing this problem or at least that will experience it.


It's a good extension and to those out there that are able to use  
it I'm envious.  I hope someone is able to fix this someday and  
I'll try it again.


By the way, is there a clean way to remove the paperclipped  
extension?


Steven


___
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 mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] paperclipped

2009-01-28 Thread C. R. Oldham


On Jan 28, 2009, at 11:49 AM, Sean Cribbs wrote:


Sounds like paperclip should use FileUtils.rm_rf instead of rm_dir.


It doesn't, at least if it is the same as the one I have installed.   
Here's the code:


  def flush_deletes #:nodoc:
logger.info([paperclip] Deleting files for #{name})
@queued_for_delete.each do |path|
  begin
logger.info([paperclip] - #{path})
FileUtils.rm(path) if File.exist?(path)
  rescue Errno::ENOENT = e
# ignore file-not-found, let everything else pass
  end
end
@queued_for_delete = []
  end
end

File.exist? returns true for files and directories.  But unless I have  
an old version of paperclipped that doesn't call FileUtils.rm, the  
Ruby docs say specifically that FileUtils.rm does not remove  
directories.  And to be really safe, it should use  
FileUtils.remove_entry_secure.


Steven, you might try a quick patch and change FileUtils.rm to  
FileUtils.remove_entry_secure (or FileUtils.rm_rf like Sean suggests  
if you are not terribly worried about security) in vendor/extensions/ 
paperclipped/vendor/plugins/paperclip/lib/paperclip/storage.rb


--cro

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


Re: [Radiant] what extensions do you have installed?

2009-01-28 Thread Michael Kessler

Here are mine:

admin_breadcrumbs (heads/master)
copy_move (heads/master)
dashboard (heads/master)
gallery (heads/master)
help (v1-20-gc14a55e)
import_export (heads/master)
iphone (heads/master)
multi_site (heads/master)
navigation_tags (heads/master)
page_preview
paperclipped (heads/master)
paperclipped_multisite (heads/master)
ray (heads/experimental)
reorder (heads/master)
search (heads/master)
search_multi_site (heads/master)
settings (heads/master)
share_layouts (heads/master)
sns (v0.7.1-11-g7dc898f)
tags (heads/master)
tags_multi_site (heads/master)
wym_editor_filter (heads/master)
attachment_fu (heads/master)

On 28 Jan 2009, at 4:38 AM, john muhl wrote:


I'd like to get some kind of idea what the most popular extensions
are. I'll start, my personal site has (minus the ones packaged with
radiant)

* Bluecloth Filter
* Default Page Parts
* Mailer
* Page Attachments
* RDiscount Markdown Filter
* Shards

I guess Shards gives away that my instance is sort of out of date.
___
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


Re: [Radiant] error when running tests on edge

2009-01-28 Thread Joe Van Dyk
Doh, that makes sense, I guess.

I wonder if something like this is possible in config/environment.rb:

if RAILS_ENV == 'test'
  config.gem 'rspec-rails', ' 1.0'
  config.gem 'rspec'
  config.gem 'blah'
end

config.gem whatever else'

Joe

On Tue, Jan 27, 2009 at 6:20 PM, Sean Cribbs seancri...@gmail.com wrote:
 You need rspec-rails as well.

 Sean

 Joe Van Dyk wrote:

 I've got rspec 1.12 installed as a gem.  I did the submodule init and
 submodule update dance.  When I run rake...

 Running Integration Spec Task
 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
 `gem_original_require': no such file to load -- spec/rails
 (MissingSourceFile)
from
 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
 `require'
from
 /home/joe/projects/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:510:in
 `require'
from
 /home/joe/projects/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:355:in
 `new_constants_in'
from
 /home/joe/projects/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:510:in
 `require'
from /home/joe/projects/radiant/spec/spec_helper.rb:14
from
 /home/joe/projects/radiant/spec/integration/admin/user_management_integration_spec.rb:1:in
 `require'
from
 /home/joe/projects/radiant/spec/integration/admin/user_management_integration_spec.rb:1
from
 /usr/local/lib/ruby/gems/1.8/gems/rspec-1.1.12/lib/spec/runner/example_group_runner.rb:15:in
 `load'
from
 /usr/local/lib/ruby/gems/1.8/gems/rspec-1.1.12/lib/spec/runner/example_group_runner.rb:15:in
 `load_files'
from
 /usr/local/lib/ruby/gems/1.8/gems/rspec-1.1.12/lib/spec/runner/example_group_runner.rb:14:in
 `each'
from
 /usr/local/lib/ruby/gems/1.8/gems/rspec-1.1.12/lib/spec/runner/example_group_runner.rb:14:in
 `load_files'
from
 /usr/local/lib/ruby/gems/1.8/gems/rspec-1.1.12/lib/spec/runner/options.rb:94:in
 `run_examples'
from
 /usr/local/lib/ruby/gems/1.8/gems/rspec-1.1.12/lib/spec/runner/command_line.rb:9:in
 `run'
from /usr/local/lib/ruby/gems/1.8/gems/rspec-1.1.12/bin/spec:4
 ___
 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 mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] paperclipped

2009-01-28 Thread Steven Southard
Thank you for looking into this. I tried both yours and Sean quick fix  
and neither helped.


here is the full stack

Parameters: {action=remove,  
authenticity_token=b3c11c1f1191103da344cae2345c5beb9a7654d,  
id=11, controller=assets}

[paperclip] Paperclip attachment asset on Asset initialized.
[paperclip] Deleting attachments.
[paperclip] Queueing the existing files for asset for deletion.
[paperclip] Deleting files for asset
[paperclip] - /users/home/./web/public/assets/11/testimage.jpg


Errno::EEXIST (File exists - /users/home//web/public/assets/11):
/usr/local/lib/ruby/1.8/fileutils.rb:264:in `rmdir'
/usr/local/lib/ruby/1.8/fileutils.rb:264:in `rmdir'
/usr/local/lib/ruby/1.8/fileutils.rb:263:in `each'
/usr/local/lib/ruby/1.8/fileutils.rb:263:in `rmdir'
/vendor/extensions/paperclipped/vendor/plugins/paperclip/lib/ 
paperclip/storage.rb:62:in `flush_deletes'
/vendor/extensions/paperclipped/vendor/plugins/paperclip/lib/ 
paperclip/storage.rb:52:in `each'
/vendor/extensions/paperclipped/vendor/plugins/paperclip/lib/ 
paperclip/storage.rb:52:in `flush_deletes'
/vendor/extensions/paperclipped/vendor/plugins/paperclip/lib/ 
paperclip.rb:301:in `send'
/vendor/extensions/paperclipped/vendor/plugins/paperclip/lib/ 
paperclip.rb:301:in `destroy_attached_files'
/vendor/extensions/paperclipped/vendor/plugins/paperclip/lib/ 
paperclip.rb:286:in `each_attachment'
/vendor/extensions/paperclipped/vendor/plugins/paperclip/lib/ 
paperclip.rb:285:in `each'
/vendor/extensions/paperclipped/vendor/plugins/paperclip/lib/ 
paperclip.rb:285:in `each_attachment'
/vendor/extensions/paperclipped/vendor/plugins/paperclip/lib/ 
paperclip.rb:299:in `destroy_attached_files'
/vendor/rails/activerecord/lib/../../activesupport/lib/ 
active_support/callbacks.rb:173:in `send'
/vendor/rails/activerecord/lib/../../activesupport/lib/ 
active_support/callbacks.rb:173:in `evaluate_method'
/vendor/rails/activerecord/lib/../../activesupport/lib/ 
active_support/callbacks.rb:161:in `call'
/vendor/rails/activerecord/lib/../../activesupport/lib/ 
active_support/callbacks.rb:93:in `run'
/vendor/rails/activerecord/lib/../../activesupport/lib/ 
active_support/callbacks.rb:92:in `each'
/vendor/rails/activerecord/lib/../../activesupport/lib/ 
active_support/callbacks.rb:92:in `send'
/vendor/rails/activerecord/lib/../../activesupport/lib/ 
active_support/callbacks.rb:92:in `run'
/vendor/rails/activerecord/lib/../../activesupport/lib/ 
active_support/callbacks.rb:272:in `run_callbacks'
/vendor/rails/activerecord/lib/active_record/callbacks.rb:298:in  
`callback'
/vendor/rails/activerecord/lib/active_record/callbacks.rb:288:in  
`destroy_without_transactions'
/vendor/rails/activerecord/lib/active_record/transactions.rb: 
102:in `destroy'
/vendor/rails/activerecord/lib/active_record/connection_adapters/ 
abstract/database_statements.rb:66:in `transaction'
/vendor/rails/activerecord/lib/active_record/transactions.rb: 
79:in `transaction'
/vendor/rails/activerecord/lib/active_record/transactions.rb: 
98:in `transaction'
/vendor/rails/activerecord/lib/active_record/transactions.rb: 
102:in `destroy'
/vendor/extensions/paperclipped/app/controllers/ 
assets_controller.rb:110:in `remove'
/vendor/rails/actionpack/lib/action_controller/base.rb:1166:in  
`send'
/vendor/rails/actionpack/lib/action_controller/base.rb:1166:in  
`perform_action_without_filters'
/vendor/rails/actionpack/lib/action_controller/filters.rb:579:in  
`call_filters'
/vendor/rails/actionpack/lib/action_controller/filters.rb:572:in  
`perform_action_without_benchmark'
/vendor/rails/actionpack/lib/action_controller/benchmarking.rb: 
68:in `perform_action_without_rescue'

/usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
/vendor/rails/actionpack/lib/action_controller/benchmarking.rb: 
68:in `perform_action_without_rescue'
/vendor/rails/actionpack/lib/action_controller/rescue.rb:201:in  
`perform_action_without_caching'
/vendor/rails/actionpack/lib/action_controller/caching/ 
sql_cache.rb:13:in `perform_action'
/vendor/rails/activerecord/lib/active_record/connection_adapters/ 
abstract/query_cache.rb:33:in `cache'
/vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in  
`cache'
/vendor/rails/actionpack/lib/action_controller/caching/ 
sql_cache.rb:12:in `perform_action'
/vendor/rails/actionpack/lib/action_controller/base.rb:529:in  
`send'
/vendor/rails/actionpack/lib/action_controller/base.rb:529:in  
`process_without_filters'
/vendor/rails/actionpack/lib/action_controller/filters.rb:568:in  
`process_without_session_management_support'
/vendor/rails/actionpack/lib/action_controller/ 
session_management.rb:130:in `sass_old_process'

/vendor/plugins/haml/lib/sass/plugin/rails.rb:19:in `process'
/vendor/rails/actionpack/lib/action_controller/base.rb:389:in  
`process'

Re: [Radiant] Re: Stuck on Creating Radiant Extensions tutorial

2009-01-28 Thread Andrew Neil

Roman,

Sorry, my bad. I updated the tutorial a few months back, replacing the  
scaffolding (which was deprecated in Rails) with Radiant's own  
AbstractModelController. I made alterations to the tutorial after  
modifying my local copy of the LinkRoll controller, but I didn't try  
running through the tutorial from start to finish.


Having now followed through the tutorial, I found that the /admin/ 
links index page worked ok, but the /admin/links/new /edit and /remove  
pages threw a template not found exception. To fix this, I did the  
following:


* Rename links_controller to link_controller
* Update class Admin::LinksController to Admin::LinkController
* rename the directory /app/views/admin/links to /link
* finally, in the link_roll_extension.rb file, change the line:

map.with_options(:controller = 'admin/links') do |link|

to

map.with_options(:controller = 'admin/link') do |link|

I've updated the tutorial with these corrections. If anyone has the  
time to follow the steps from start to finish, I would be glad to hear  
whether or not it works for you.


Note that these modifications are only suitable if your extension is  
running on Radiant 0.6.9 or earlier. If you are running on 0.7 (which  
has not been released, at time of writing), then the modifications  
above are useless. The confusion stems from Radiant having defied a  
Rails convention: using plural names for controllers. (e.g. in 0.6.9,  
we have a snippet_controller). This has been fixed as part of the  
RESTful refactoring of Radiant for version 0.7. (in 0.7, we have a  
snippets_controller). Hopefully that will lead to less confusion in  
the future.


Cheers,
Drew

On 20 Jan 2009, at 08:43, Roman Marszalek wrote:


Hi All,

I've also tried this

1) from scratch on another machine. i.e. gem install radiant all the
way through to running the extension.

2) on my hosting account with Joyent on Radiant 0.6.8 and same error.

Can someone confirm that it works for them at least?

Thanks,

Roman

On Mon, Jan 19, 2009 at 5:20 PM, Roman Marszalek  
ro...@drlogic.co.uk wrote:

Just to make sure I wasn't making any typos, I found the tutorial
extension on github

http://github.com/radiant/radiant-link-roll-extension/tree/master

I donwloaded this and ran everything again and I get exactly the same
issue, i.e.

Missing template admin/link/edit.html.erb in view path

If anyone has any ideas that 'd be wonderful.

Thanks,

Roman

On Mon, Jan 19, 2009 at 3:59 PM, Roman Marszalek  
ro...@drlogic.co.uk wrote:

Hi,
I'd like to write my own custom tags. As a start I've been following
the following tutorial
http://wiki.radiantcms.org/Creating_Radiant_Extensions

When I enter the admin interface, go to the Links tab and the  
click

the New link I get the following message

Template is missing

Missing template admin/link/edit.html.erb in view path
/Users/roman/work/custom_tags/vendor/extensions/link_roll/app/ 
views:/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.9/app/views


I don't know why it's trying to go to admin/link/edit.html.erb  
rather

than admin/links/edit.html.erb

I've double-checked everything including the define_routes do |map|
bit in the main rb file.

Any ideas - I'm doing the tut with radiant 0.6.9

Thanks,



--
Roman Marszalek
Managing Director
mobile: +44 7786 262 002
email: supp...@drlogic.co.uk

telephone: 0800 345 7844 (+44 20 7014 3634)
Our lines are open from 9am to 6pm Monday to Friday

Doctor Logic Limited
Mac Support for London
http://drlogic.co.uk

* Dr Logic Backup *
Backup for Britain
http://drlogicbackup.co.uk

* Dr Logic Training *
In partnership with Academy Class
http://training.drlogic.co.uk


Registered in England and Wales. Company No. 04947299.
Registered Office: 2nd Floor 145-157 St John Street, London EC1V 4PY
VAT Reg. No. GB848448189

___
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


Re: [Radiant] Abstract and Resource controllers

2009-01-28 Thread Andrew Neil


On 27 Jan 2009, at 22:15, Andrew Neil wrote:
I am planning on updating the Creating Radiant Extensions  
tutorial[1] to reflect these changes. I hesitate, because I think  
the current tutorial should continue to exist, as long as Radiant  
0.6.9 and below are still in usage. Would it be acceptable to place  
a paragraph at the top of the tutorial, linking to a previous  
revision? e.g.:


http://wiki.radiantcms.org/Creating_Radiant_Extensions/38

An alternative would be to create a new page for the tutorial. My  
preference would be to update the current article for 0.7, then  
create a new page called Creating Radiant Extensions (pre-0.7),  
and copy the current state of the tutorial into that one. The  
existing tutorial has quite a lot of links pointing at it, and I  
think it would be better to keep the article at that URL the most  
current.


I've gone ahead and 'forked' the wiki pages. The original tutorial now  
exists here:


A:  http://wiki.radiantcms.org/Creating_Radiant_Extensions_A_0-6
B:  http://wiki.radiantcms.org/Creating_Radiant_Extensions_B_0-6

And the updated for 0.7 version lives on at the original URLs:

A:  http://wiki.radiantcms.org/Creating_Radiant_Extensions
B:  http://wiki.radiantcms.org/Creating_Radiant_Extensions_B

I would appreciate if anyone can take the time to step through the  
latest version of the tutorial, using Radiant 0.7 (edge, not rc2), and  
let me know if everything works as it should.


Cheers,
Drew

p.s. On another note, I was developing this with 0.7.0-rc2 to begin  
with, but was hindered by a bug which Sean has now fixed[2]. I  
switched to edge, and was able to continue.

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


Re: [Radiant] SnS Extension - 500 Error

2009-01-28 Thread coffeepostal

I'm getting the same error again, but this time it's not being fixed by
bootstrapping. Any ideas?



coffeepostal wrote:
 
 Hello-
 
 I'm relatively new to the RoR world and am trying to use Radiant for my
 CMS, but I keep running into problems with the Styles n' Scripts (SnS)
 extension. I initially had problems installing it, it kept not finding the
 extension_meta table. I finally solved this by bootstrapping the entire
 db, rather than just the production db. It then installed, apparently,
 just fine.
 
 My new problem is that now that it's installed, when I click in the new
 tabs (CSS and JS) in Radiant I get sent to a 500 error. It's sending me to
 domain.com/admin/css and domain.com/admin/js, so that's correct, but a 500
 error isn't.
 
 I've tried reinstalling the extension, reinstalling the entire app, and
 restarting the server multiple times. Any and all help would be
 appreciated.
 
 Oh, I'm on DreamHost, if that helps/explains anything. Thanks!
 
 UPDATE: I tried again, this time I bootstrapped all db's and it worked.
 For the record, all of the tutorials, one from Radiant and two from the
 extension authors, had you bootstrap the production db, but not all three
 db's. Anyway, if you're having issues, try bootstrapping everything.
 

-- 
View this message in context: 
http://www.nabble.com/SnS-Extension---500-Error-tp21486070p21719989.html
Sent from the Radiant - User (New) mailing list archive at Nabble.com.

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


Re: [Radiant] SnS Extension - 500 Error

2009-01-28 Thread Joe Van Dyk
Errm, what does log/production.log say?

On Wed, Jan 28, 2009 at 6:59 PM, coffeepostal b...@adamfarnsworth.com wrote:

 I'm getting the same error again, but this time it's not being fixed by
 bootstrapping. Any ideas?



 coffeepostal wrote:

 Hello-

 I'm relatively new to the RoR world and am trying to use Radiant for my
 CMS, but I keep running into problems with the Styles n' Scripts (SnS)
 extension. I initially had problems installing it, it kept not finding the
 extension_meta table. I finally solved this by bootstrapping the entire
 db, rather than just the production db. It then installed, apparently,
 just fine.

 My new problem is that now that it's installed, when I click in the new
 tabs (CSS and JS) in Radiant I get sent to a 500 error. It's sending me to
 domain.com/admin/css and domain.com/admin/js, so that's correct, but a 500
 error isn't.

 I've tried reinstalling the extension, reinstalling the entire app, and
 restarting the server multiple times. Any and all help would be
 appreciated.

 Oh, I'm on DreamHost, if that helps/explains anything. Thanks!

 UPDATE: I tried again, this time I bootstrapped all db's and it worked.
 For the record, all of the tutorials, one from Radiant and two from the
 extension authors, had you bootstrap the production db, but not all three
 db's. Anyway, if you're having issues, try bootstrapping everything.


 --
 View this message in context: 
 http://www.nabble.com/SnS-Extension---500-Error-tp21486070p21719989.html
 Sent from the Radiant - User (New) mailing list archive at Nabble.com.

 ___
 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] Can a tag determine the filter used by it's page part?

2009-01-28 Thread Philip Hallstrom

Hi everyone -

Working on an extension and it would be convenient for me if the tag  
could determine what if any filter was being applied to it's result.


I didn't see anything in the source (but also haven't mapped it all  
the way through).  I saw one post on the mailing list from a year ago  
asking this, but didn't see any replies (http://lists.radiantcms.org/pipermail/radiant/2007-May/004915.html 
).


So... is it possible?

Thanks!

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


Re: [Radiant] SnS Extension - 500 Error

2009-01-28 Thread coffeepostal

I've attached the log file.

Adam http://www.nabble.com/file/p21721318/production.log production.log 



Joe Van Dyk-2 wrote:
 
 Errm, what does log/production.log say?
 

-- 
View this message in context: 
http://www.nabble.com/SnS-Extension---500-Error-tp21486070p21721318.html
Sent from the Radiant - User (New) mailing list archive at Nabble.com.

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


Re: [Radiant] SnS Extension - 500 Error

2009-01-28 Thread Andrew Neil

From your log:

	ActiveRecord::StatementInvalid (Mysql::Error: Table  
'reliveministry.text_assets' doesn't exist: SHOW FIELDS FROM  
`text_assets`)


it appears that the text_assets table is missing. Perhaps you need to  
run the migrations for sns? Make sure you do it in both dev and  
production environments.


Drew

On 29 Jan 2009, at 05:51, coffeepostal wrote:



I've attached the log file.

Adam http://www.nabble.com/file/p21721318/production.log  
production.log




Joe Van Dyk-2 wrote:


Errm, what does log/production.log say?



--
View this message in context: 
http://www.nabble.com/SnS-Extension---500-Error-tp21486070p21721318.html
Sent from the Radiant - User (New) mailing list archive at Nabble.com.

___
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