[Radiant] Paperclipped rake error...

2009-02-03 Thread Bartee Lamar
getting error from rake command.. I think I need rails paginate, but not sure...?? Partial trace below. bar...@bartee-linux:~/railsprojects/myradiant$ rake development db:migrate:extensions (in /home/bartee/railsprojects/myradiant) rake aborted! undefined method `has_attachment' for

[Radiant] Custom Radiant Tags

2009-02-03 Thread Little Known
tag 'kids:kid_sport_list' do |tag| kid = tag.locals.kid kid.sports.each do |sport| %{#{sport.name}) end end For some reason this outputs a # for each sport in kid.sports instead of the name... Would anyone know why? -- Posted via http://www.ruby-forum.com/.

Re: [Radiant] Custom Radiant Tags

2009-02-03 Thread Jim Gay
On Feb 3, 2009, at 11:12 AM, Little Known wrote: tag 'kids:kid_sport_list' do |tag| kid = tag.locals.kid kid.sports.each do |sport| %{#{sport.name}) end end For some reason this outputs a # for each sport in kid.sports instead of the name... Would anyone know why? looks

[Radiant] Re: Custom Radiant Tags

2009-02-03 Thread Little Known
Jim Gay wrote: On Feb 3, 2009, at 11:12 AM, Little Known wrote: tag 'kids:kid_sport_list' do |tag| kid = tag.locals.kid kid.sports.each do |sport| %{#{sport.name}) end end For some reason this outputs a # for each sport in kid.sports instead of the name... Would anyone

Re: [Radiant] Custom Radiant Tags

2009-02-03 Thread Sean Cribbs
Also, each just iterates over the collection and then returns the original collection. You'll want to use map/collect or inject instead. tag 'kids:kid_sport_list' do |tag| kid = tag.locals.kid kid.sports.map {|s| s.name.to_s }.join(, ) end Sean Jim Gay wrote: On Feb 3, 2009, at 11:12 AM,

Re: [Radiant] Re: Custom Radiant Tags

2009-02-03 Thread Jim Gay
On Feb 3, 2009, at 11:24 AM, Little Known wrote: Jim Gay wrote: On Feb 3, 2009, at 11:12 AM, Little Known wrote: tag 'kids:kid_sport_list' do |tag| kid = tag.locals.kid kid.sports.each do |sport| %{#{sport.name}) end end For some reason this outputs a # for each sport in kid.sports

[Radiant] How to create a javascript page

2009-02-03 Thread Carl Youngblood
I'm setting up a new Radiant site and trying to maintain all my assets in the web interface rather than uploading stuff like javascript and images to the server separately and just referring to them. I'm using the paperclipped extension. Anyway, what is the right way to create a javascript file?

Re: [Radiant] How to create a javascript page

2009-02-03 Thread Jim Gay
On Feb 3, 2009, at 11:40 AM, Carl Youngblood wrote: I'm setting up a new Radiant site and trying to maintain all my assets in the web interface rather than uploading stuff like javascript and images to the server separately and just referring to them. I'm using the paperclipped

[Radiant] Re: Re: Custom Radiant Tags

2009-02-03 Thread Little Known
Thank you, very helpful! -- Posted via http://www.ruby-forum.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] How to create a javascript page

2009-02-03 Thread Sean Cribbs
If you're not using SNS, you can create a layout that has the text/javascript or application/javascript content-type, put 'r:content /' in the content box, and then apply the layout to a page that contains your Javascript. Sean Jim Gay wrote: On Feb 3, 2009, at 11:40 AM, Carl Youngblood

Re: [Radiant] How to create a javascript page

2009-02-03 Thread Carl Youngblood
Thanks Sean. I actually am doing this, but the edit form is causing my minified javascript to contain carriage returns, which is causing syntax errors. Is there any way to avoid this without using SNS? On Tue, Feb 3, 2009 at 10:08 AM, Sean Cribbs seancri...@gmail.com wrote: If you're not using

Re: [Radiant] Sendfile headers

2009-02-03 Thread Sean Cribbs
They wouldn't report a different size (all other headers are preserved), but the header gives the file a fast-track through the web-server and operating system. Essentially, it tells the OS to stream the file to the socket, on OS's that support it. Sean john muhl wrote: i've been using the

Re: [Radiant] if_content not working as expected

2009-02-03 Thread Jim Gay
On Feb 3, 2009, at 3:28 PM, N. Turnage wrote: Hey all. I am using the templates extension and I have 'address1' and 'address2' fields in a template used to hold information about a number of institutions. When I use r:children:each to iterate over the fields for each institution, some or

Re: [Radiant] if_content not working as expected

2009-02-03 Thread Sean Cribbs
With templates, the part is there even if empty. You probably need a tag that checks whether the contents of the part is blank. Andrew vonderLuft has some tags that he intended to submit to core that do just that - I'll poke him about it. Sean N. Turnage wrote: Hey all. I am using the

Re: [Radiant] if_content not working as expected

2009-02-03 Thread N. Turnage
Jim Gay wrote: In retrospect, the if_content should be called if_part, since that's what it means. if_content doesn't check for contents in the part (or whether or not the part is blank) it checks if the part exists Ah, I see. Would it make sense if a feature was added to it so that you

Re: [Radiant] if_content not working as expected

2009-02-03 Thread N. Turnage
Sean Cribbs wrote: With templates, the part is there even if empty. You probably need a tag that checks whether the contents of the part is blank. Andrew vonderLuft has some tags that he intended to submit to core that do just that - I'll poke him about it. Thanks. Are there any current

Re: [Radiant] dropdown for archives by month

2009-02-03 Thread Steven Southard
Thanks Sean and Mohit. I used Sean's method and it worked out real nice. Steven On Feb 3, 2009, at 1:32 AM, Mohit Sindhwani wrote: Could you create an Archive Month Index page and then use r:find ... archive page urland render the body of that archive page using r:content /into a

[Radiant] Re: Additional templates extension strangeness

2009-02-03 Thread N. Turnage
Thanks for the page status pulldown on the updates though. ;^) ~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] Counting Articles

2009-02-03 Thread Steven Southard
It seems like that should work but it doesn't. First, best I can tell, the archive month index doesn't have a url. Second even if I try to exclude another article's url it doesn't change the count. On Feb 3, 2009, at 4:34 PM, john muhl wrote: might try excluding it by url r:find

Re: [Radiant] Counting Articles

2009-02-03 Thread john muhl
might try excluding it by url r:find url=/articlesr:unless_url matches=/articles/archive r:children:count / /r:unless_url /r:find On Tue, Feb 3, 2009 at 3:03 PM, Steven Southard ste...@stevensouthard.comwrote: I was using r:find url=/articlesr:children:count //r:find to keep track of the

[Radiant] Counting Articles

2009-02-03 Thread Steven Southard
I was using r:find url=/articlesr:children:count //r:find to keep track of the number of articles published. Now I've added an archive month index so my count is off by one. How do I subtract one or exclude the month index? Steven ___ Radiant

[Radiant] Which Ba ?

2009-02-03 Thread Anton Aylward
I'd like to try out the conference/event management system 'Ba' that I see on GitHub. However there are 4 different copies, and one says it will blow away the database on installation! Can someone advise on which to use, please. -- life, n.: A whim of several billion cells to be you for

[Radiant] if_content not working as expected

2009-02-03 Thread N. Turnage
Hey all. I am using the templates extension and I have 'address1' and 'address2' fields in a template used to hold information about a number of institutions. When I use r:children:each to iterate over the fields for each institution, some or which do not have any content in the address2

Re: [Radiant] Which Ba ?

2009-02-03 Thread john muhl
oops, they're not maintained On Tue, Feb 3, 2009 at 6:28 PM, john muhl johnm...@gmail.com wrote: http://github.com/aslakhellesoy/ba/network looks like while there are some other forks their either not active or get merged with the aslakhellesoy repository regularly. On Tue, Feb 3, 2009 at

Re: [Radiant] dropdown for archives by month

2009-02-03 Thread Mohit Sindhwani
Steven Southard wrote: Thanks Sean and Mohit. You're welcome. I used Sean's method and it worked out real nice. Sean's methods usually do :) Cheers, Mohit. 2/4/2009 | 11:00 AM. ___ Radiant mailing list Post: Radiant@radiantcms.org Search:

Re: [Radiant] Members Extension Won't Install Correctly

2009-02-03 Thread Adam Farnsworth
I found the original GitHub repo here: http://github.com/tekin/file_column/tree/master , but it appears that this repo: http://github.com/woahdae/file_column/tree/master is more current. My question is: do I drop file_column in Radiant's vendor/plugins directory or in the members extension

[Radiant] radiant-mailer-extension Setup

2009-02-03 Thread Adam Farnsworth
Does anyone know where it's talking about when it says: You can define email templates using pages parts (email, and/or email_html). You configure the recipients and other Mailer settings in a mailer part: I can't figure out where you are supposed to change these settings so that they

Re: [Radiant] radiant-mailer-extension Setup

2009-02-03 Thread Jim Gay
On Feb 3, 2009, at 10:54 PM, Adam Farnsworth wrote: Does anyone know where it's talking about when it says: You can define email templates using pages parts (email, and/or email_html). You configure the recipients and other Mailer settings in a mailer part: I can't figure out where you

Re: [Radiant] radiant-mailer-extension Setup

2009-02-03 Thread Jason Grimes
You will get this error if you do not have a mailer page part set up and configured correctly. I didn't create a email or email_html page parts, but just used the body part to setup the form template. Here is an example I used for the template: code r:mailer:form name=contact br/ Your

Re: [Radiant] Counting Articles

2009-02-03 Thread Sean Cribbs
r:children:count / should use the default find options for page children, which is to exclude virtual pages. Just to be sure, add virtual=false and see if you get a different result. Sean Steven Southard wrote: It seems like that should work but it doesn't. First, best I can tell, the