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
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/.
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
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
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,
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
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?
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
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
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
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
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
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
30 matches
Mail list logo