# \[ANN\] bundled\_resource v.0.9

**URL:** <https://www.ruby-forum.com/t/ann-bundled-resource-v-0-9/53167>\
**Category:** Rails\
**Created:** [January 27, 2006, 5:16am UTC](https://www.ruby-forum.com/t/ann-bundled-resource-v-0-9/53167 "2006-01-27T05:16:42Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Duane\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@Duane\_J](https://www.ruby-forum.com/u/Duane_J)\
**Post date:** [January 27, 2006, 5:16am UTC](https://www.ruby-forum.com/t/ann-bundled-resource-v-0-9/53167/1 "2006-01-27T05:16:42Z")

</div>

Original announcement at [http://blog.inquirylabs.com/](http://blog.inquirylabs.com/) [1]

== What is bundled\_resource? ==

If your development is in any way similar to mine, there are a number  
of useful resources out there that make web applications shine  
beautifully. For example, thereâ??s the Dynarch calendar and the  
textarea tools. There are a number of othersâ??too many, in fact. The  
problem is that as a web developer, it sometimes takes some real  
surgery to put each one of these in to an application. And then when  
you create a new page that uses these resources (even within the same  
app), you have to figure out which pieces to cut and paste to get it  
functional. Take the Dynarch calendar, for instance. There are 4  
javascript files, 1 CSS file (among several to choose from), 2  
images, several helper methods, and a controller method that youâ??ll  
need in order to get it to work with Rails. Sometimes itâ??s easier  
just to ignore the calendar bit because itâ??s such a pain to set up.

The bundled\_resource plugin makes it trivially easy to keep all of  
these pieces together, and to include each “bundle” with a single  
method, require\_bundle, wherever the bundle is needed.

== Examples ==

\<%= require\_bundle :dynarch\_calendar,  
:color =\> ‘green’,  
:language =\> ‘en’,  
:icon =\> ‘/images/my\_calendar.gif’ %\>

\<%= dynarch\_date\_select ‘user’, ‘birthday’ %\>

\<%= dynarch\_datetime\_select ‘user’, ‘lunch\_meeting’ %\>

== What’s new in v. 0.9? ==

This release marks a much improved and nearly completely rewritten  
dynarch calendar bundle.

Hereâ??s whatâ??s new:

It is no longer necessary to call convert\_date\_to\_multi\_params! in  
your controller  
Backwards compatibility for non-javascript browsers is now improved.  
Calling dynarch\_date\_select will call the built-in rails date\_select  
method so that users whose browsers have no javascript can still  
select a date in a reasonable way.  
There is no longer an obnoxious â??:dateâ? field in the returned  
multiparameter values.  
Bundles now accept optional parameters. For the dynarch\_calendar  
bundle, you can specify the color stylesheet, language and icon for  
your dynarch calendar.  
12-hour time is handled in a novel way, so that the user enters a 12-  
hour time (e.g. 3 PM) and Rails can read it as if itâ??s a 24-hour time.  
Better documentation.  
Version 0.9 of bundled\_resource now also includes a â??stateful\_formâ?  
bundle that makes it easier to store the open/closed states of form  
sections. This is particularly useful for AJAX forms that have hidden  
sections that the user can open up. When the form is submitted to the  
server and returned with an error, the form will retain its open/  
closed states so that itâ??s just as the user expects it.

== Download and Subversion ==

TAR / GZIP: [http://inquirylabs.com/downloads/bundled\_resource-0.9.tgz](http://inquirylabs.com/downloads/bundled_resource-0.9.tgz)  
Subversion: svn://syncid.textdriven.com/svn/opensource/  
bundled\_resource/trunk

[1] The permalink is [http://blog.inquirylabs.com/2006/01/26/bundled-](http://blog.inquirylabs.com/2006/01/26/bundled-)  
resource-v-09-full-dynarch-calendar-support/

---

<div class="post-metadata">

**Author:** ![Duane\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@Duane\_J](https://www.ruby-forum.com/u/Duane_J)\
**Post date:** [January 27, 2006, 1:07pm UTC](https://www.ruby-forum.com/t/ann-bundled-resource-v-0-9/53167/2 "2006-01-27T13:07:23Z")

</div>

Duane J. wrote:

> Original announcement at [http://blog.inquirylabs.com/](http://blog.inquirylabs.com/) [1]
> 
> == What is bundled\_resource? ==
> 
> If your development is in any way similar to mine, there are a number of  
> useful resources out there that make web applications shine beautifully.  
> For example, there?s the Dynarch calendar  
> [http://www.dynarch.com/projects/calendar/](http://www.dynarch.com/projects/calendar/) and the textarea tools  
> [http://livsey.org/experiments/textareatools/](http://livsey.org/experiments/textareatools/). There are a number of  
> others?too many, in fact.

Cool, nice work.

I really need to rewrite textarea tools at some point as the code could  
be a hell of a lot nicer. Hadn’t realised quite how popular they would  
be. about 75% of the traffic to my site comes in from links to it!

–  
R.Livsey

> **[Livsey.org](http://livsey.org)**
>
> I’ve been using Firebase with Ember.js quite a lot recently and have just
> released Fireplace, a library to integrate the two more easily. It

---

<div class="post-metadata">

**Author:** ![Duane\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@Duane\_J](https://www.ruby-forum.com/u/Duane_J)\
**Post date:** [January 27, 2006, 4:59pm UTC](https://www.ruby-forum.com/t/ann-bundled-resource-v-0-9/53167/3 "2006-01-27T16:59:57Z")

</div>

On Jan 27, 2006, at 5:09 AM, Richard L. wrote:

> Cool, nice work.
> 
> I really need to rewrite textarea tools at some point as the code  
> could be a hell of a lot nicer. Hadn’t realised quite how popular  
> they would be. about 75% of the traffic to my site comes in from  
> links to it!

Ahh, so you’re the guy 🙂 Thanks so much for making those tools  
available–it’s so nice to have a drop-in behavioral modification to  
text areas.

As you’ve mentioned, there is a little more work to do–especially  
with Firefox 1.5. For example, when I click on one of the 4 text  
area icons, I see a dotted box (meaning “active link”) going from the  
upper-left corner of the browser window to the lower-right corner of  
the icon that was clicked. Possibly a firefox bug, but it seemed to  
work ok in earlier releases. Weird, eh?

Thanks again, and good luck with any changes / refactors 🙂

Duane J.  
(canadaduane)  
[http://blog.inquirylabs.com/](http://blog.inquirylabs.com/)

---

<div class="post-metadata">

**Author:** ![Duane\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@Duane\_J](https://www.ruby-forum.com/u/Duane_J)\
**Post date:** [January 31, 2006, 12:00am UTC](https://www.ruby-forum.com/t/ann-bundled-resource-v-0-9/53167/4 "2006-01-31T00:00:27Z")

</div>

Duane–

I’m using the login\_engine and it works just fine until I install the  
bundled resource plugin. Evidently, Rails loads bundled resource first  
(alphabetical order?), which does a require on ‘application\_helper’.

My application\_helper, of course, includes login\_engine which has not  
yet been loaded. So, the whole thing spits up.

Is there a known way to affect the load order to work around this?

Thanks,

Steve R.

Duane J. wrote:

> Original announcement at [http://blog.inquirylabs.com/](http://blog.inquirylabs.com/) [1]
> 
> == What is bundled\_resource? ==
> 
> If your development is in any way similar to mine, there are a number  
> of useful resources out there that make web applications shine  
> beautifully. For example, thereâ??s the Dynarch calendar and the  
> textarea tools. There are a number of othersâ??too many, in fact. The  
> problem is that as a web developer, it sometimes takes some real  
> surgery to put each one of these in to an application. And then when  
> you create a new page that uses these resources (even within the same  
> app), you have to figure out which pieces to cut and paste to get it  
> functional. Take the Dynarch calendar, for instance. There are 4  
> javascript files, 1 CSS file (among several to choose from), 2  
> images, several helper methods, and a controller method that youâ??ll  
> need in order to get it to work with Rails. Sometimes itâ??s easier  
> just to ignore the calendar bit because itâ??s such a pain to set up.
> 
> The bundled\_resource plugin makes it trivially easy to keep all of  
> these pieces together, and to include each “bundle” with a single  
> method, require\_bundle, wherever the bundle is needed.
> 
> == Examples ==
> 
> \<%= require\_bundle :dynarch\_calendar,  
> :color =\> ‘green’,  
> :language =\> ‘en’,  
> :icon =\> ‘/images/my\_calendar.gif’ %\>
> 
> \<%= dynarch\_date\_select ‘user’, ‘birthday’ %\>
> 
> \<%= dynarch\_datetime\_select ‘user’, ‘lunch\_meeting’ %\>
> 
> == What’s new in v. 0.9? ==
> 
> This release marks a much improved and nearly completely rewritten  
> dynarch calendar bundle.
> 
> Hereâ??s whatâ??s new:
> 
> It is no longer necessary to call convert\_date\_to\_multi\_params! in  
> your controller  
> Backwards compatibility for non-javascript browsers is now improved.  
> Calling dynarch\_date\_select will call the built-in rails date\_select  
> method so that users whose browsers have no javascript can still  
> select a date in a reasonable way.  
> There is no longer an obnoxious â??:dateâ? field in the returned  
> multiparameter values.  
> Bundles now accept optional parameters. For the dynarch\_calendar  
> bundle, you can specify the color stylesheet, language and icon for  
> your dynarch calendar.  
> 12-hour time is handled in a novel way, so that the user enters a 12-  
> hour time (e.g. 3 PM) and Rails can read it as if itâ??s a 24-hour time.  
> Better documentation.  
> Version 0.9 of bundled\_resource now also includes a â??stateful\_formâ?  
> bundle that makes it easier to store the open/closed states of form  
> sections. This is particularly useful for AJAX forms that have hidden  
> sections that the user can open up. When the form is submitted to the  
> server and returned with an error, the form will retain its open/  
> closed states so that itâ??s just as the user expects it.
> 
> == Download and Subversion ==
> 
> TAR / GZIP: [http://inquirylabs.com/downloads/bundled\_resource-0.9.tgz](http://inquirylabs.com/downloads/bundled_resource-0.9.tgz)  
> Subversion: svn://syncid.textdriven.com/svn/opensource/  
> bundled\_resource/trunk
> 
> [1] The permalink is [http://blog.inquirylabs.com/2006/01/26/bundled-](http://blog.inquirylabs.com/2006/01/26/bundled-)  
> resource-v-09-full-dynarch-calendar-support/

---

<div class="post-metadata">

**Author:** ![Duane\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@Duane\_J](https://www.ruby-forum.com/u/Duane_J)\
**Post date:** [February 28, 2006, 4:26am UTC](https://www.ruby-forum.com/t/ann-bundled-resource-v-0-9/53167/5 "2006-02-28T04:26:58Z")

</div>

Hello guys,

I’m having trouble with bundled\_resource plugin, trying to get a  
dynarch\_date\_select going…

I’ve got the following in my layout file:

 ABC123 \<%= stylesheet\_auto\_link\_tags %\> \<%= stylesheet\_auto\_include\_tags %\> ... ...

In my view (actually it’s a \_form.rhtml),  
\<%= error\_messages\_for ‘…’ %\>  
\<% require\_bundle :dynarch\_calendar %\>  
…  
\<%= dynarch\_date\_select “tablename”, “fieldname” %\>

When I render this in Firefox, I see something identical to what I  
would see if I was using good old date\_select. ‘View source’ shows me  
a bunch of drop down boxes, identical to what I’d see from  
date\_select.

In the log file, I can see a bunch of dynarch\_calendar .jss files all  
being loaded successfully (i.e. they’re returning 200s).

I’m fairly sure I must’ve missed out a step, but I can’t find it in  
the documentation anywhere.

Can anybody help?

Thanks in advance

Dave M.

---

<div class="post-metadata">

**Author:** ![Duane\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@Duane\_J](https://www.ruby-forum.com/u/Duane_J)\
**Post date:** [February 2, 2006, 5:23am UTC](https://www.ruby-forum.com/t/ann-bundled-resource-v-0-9/53167/6 "2006-02-02T05:23:08Z")

</div>

I’ve improved the technique a bit so that this conflict no longer  
occurs. The changes are in subversion:

svn://syncid.textdriven.com/svn/opensource/bundled\_resource/trunk

Hopefully this will make life easier!  
Duane

---

<div class="post-metadata">

**Author:** ![Duane\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@Duane\_J](https://www.ruby-forum.com/u/Duane_J)\
**Post date:** [February 28, 2006, 6:33am UTC](https://www.ruby-forum.com/t/ann-bundled-resource-v-0-9/53167/7 "2006-02-28T06:33:51Z")

</div>

Hmm, Javascript Console - haven’t thought to check that before. I’m  
in that transitional phase where Javascript/DOM stuff in general is  
becoming less magical and more something I can control and use, but  
I’m not quite there yet!

I’ve got a “$ is not defined” error in  
dynarch\_calendar/javascripts/convert\_calendar\_field.js at line 33.  
That’s the only error - no other warnings or messages of any sort.

Context of line 33 is:  
// Replace the default Rails select boxes with our dynarch contents  
// alert(dynarch\_contents);  
container = $(tag\_id + ‘\_container’); \<-------- Line 33  
container.innerHTML = dynarch\_contents;

so it looks like that error’s quite possibly tied to what I’m (not)  
seeing.

Regards

Dave M.

---

<div class="post-metadata">

**Author:** ![Duane\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@Duane\_J](https://www.ruby-forum.com/u/Duane_J)\
**Post date:** [February 28, 2006, 7:38am UTC](https://www.ruby-forum.com/t/ann-bundled-resource-v-0-9/53167/8 "2006-02-28T07:38:03Z")

</div>

Lots of this ‘newfangled’ stuff requires XHTML that validates or  
the browser will fall back from “standards” mode into “compatible”  
mode, occasionally breaking things that are otherwise OK.

I don’t know that if that’s what’s happening here, but it may be  
worth checking into.

–  
– Tom M.

---

<div class="post-metadata">

**Author:** ![Duane\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@Duane\_J](https://www.ruby-forum.com/u/Duane_J)\
**Post date:** [February 28, 2006, 8:53am UTC](https://www.ruby-forum.com/t/ann-bundled-resource-v-0-9/53167/9 "2006-02-28T08:53:28Z")

</div>

Done a bit more research, and the problem is happening on IE6 on XP,  
Firefox 1.07 on Ubuntu Linux, and Firefox 1.5 on XP. That’s the only  
full-strength browsers I’ve got…

I also re-downloaded bundled\_resource and confirmed the problem exists  
on both the latest (0.9) release as well as the trunk svn code.

Uncommenting the “alert” line immediately prior to the line giving the  
error pops up a block of HTML that looks “reasonable”, for want of  
another term. This HTML is what’s being referenced by the line giving  
me the error; with my limited understanding of Javascript, it almost  
looks like a syntax error in convert\_calendar\_field.js, but that  
couldn’t be the case because others are using this library without  
problems.

The relevant lines of code (lines 32-34 of convert\_calendar\_field.js  
are shown below:  
// Replace the default Rails select boxes with our dynarch contents  
alert("Contents for " + tag\_id + ‘\_container’ + “: \n” +  
dynarch\_contents);  
container = $(tag\_id + ‘\_container’);

The alert line is normally commented out, but uncommenting it causes  
the “dynarch\_contents” to be displayed.

Simple question: is the last of these 3 lines actually valid  
Javascript? What should it be doing?

Regards

Dave M.

---

<div class="post-metadata">

**Author:** ![Duane\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@Duane\_J](https://www.ruby-forum.com/u/Duane_J)\
**Post date:** [February 28, 2006, 9:06am UTC](https://www.ruby-forum.com/t/ann-bundled-resource-v-0-9/53167/10 "2006-02-28T09:06:28Z")

</div>

Does your markup validate?

–  
– Tom M.

---

<div class="post-metadata">

**Author:** ![Duane\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@Duane\_J](https://www.ruby-forum.com/u/Duane_J)\
**Post date:** [February 28, 2006, 5:31am UTC](https://www.ruby-forum.com/t/ann-bundled-resource-v-0-9/53167/11 "2006-02-28T05:31:07Z")

</div>

Hi David,

The dynarch\_date\_select renders the normal rails date\_select at  
first, and then adds a little javascript right after it to convert it  
to a dynarch calendar. This is mostly for backwards compatibility so  
that browsers without JS enabled can still select a date. So that  
would (hopefully) explain the origin of your situation… however,  
why it’s not converting to a dynarch calendar as it should, I’m not  
sure… have you checked the Javascript Console to see if you’re  
getting any errors?

Duane J.  
(canadaduane)  
[http://blog.inquirylabs.com/](http://blog.inquirylabs.com/)

---

<div class="post-metadata">

**Author:** ![Duane\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@Duane\_J](https://www.ruby-forum.com/u/Duane_J)\
**Post date:** [February 28, 2006, 10:57am UTC](https://www.ruby-forum.com/t/ann-bundled-resource-v-0-9/53167/12 "2006-02-28T10:57:45Z")

</div>

Hmm, that’s strange.

I’m getting validation errors all over the place, but I don’t think  
they’re cause for concern…

This is the start of the page:  
1   
2   
3 ABC123  
4   
5  
6   
7   
8   
9   
10  
11   
12

And the errors for this section…

# Line 1, character 1:
^

Error: missing document type declaration; assuming HTML 4.01  
Transitional

# Line 4, character 122:

… “Stylesheet” type=“text/css” /\>  
^

Warning: net-enabling start-tag; possibly missing required quotes  
around an attribute value

# Line 11, character 88:

… “Stylesheet” type=“text/css” /\>  
^

Warning: net-enabling start-tag; possibly missing required quotes  
around an attribute value

# Line 11, character 88:

… “Stylesheet” type=“text/css” /\>  
^

Error: element LINK not allowed here; check which elements this  
element may be contained within

# Line 12, character 9:
 ^

Error: end tag for element HEAD which is not open; try removing the  
end tag or check for improper nesting of elements

Here’s the code that corresponds to this section:

 ABC123 \<%= stylesheet\_auto\_link\_tags %\> \<%= javascript\_auto\_include\_tags %\> \<%= stylesheet\_link\_tag "abc", :media =\> "all" %\> 

Other than these (and several similar errors, all of which are from  
Rails API-generated code), it validates cleanly.

Not sure if that’s a good or bad thing, but I’m assuming other  
peoples’ pages would give similar errors yet they’re still able to  
render dynarch fields correctly.

This has really got me stumped.

Regards

Dave M.

---

<div class="post-metadata">

**Author:** ![Duane\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@Duane\_J](https://www.ruby-forum.com/u/Duane_J)\
**Post date:** [February 28, 2006, 11:56am UTC](https://www.ruby-forum.com/t/ann-bundled-resource-v-0-9/53167/13 "2006-02-28T11:56:58Z")

</div>

On Feb 28, 2006, at 1:55 AM, David M. wrote:

> Hmm, that’s strange.
> 
> I’m getting validation errors all over the place, but I don’t think  
> they’re cause for concern…

snip…

> Other than these (and several similar errors, all of which are from  
> Rails API-generated code), it validates cleanly.
> 
> Not sure if that’s a good or bad thing, but I’m assuming other  
> peoples’ pages would give similar errors yet they’re still able to  
> render dynarch fields correctly.

Oh, yeah, if you’re not declaring XHTML, advanced CSS  
and JavaScript stuff simply won’t work, as I understand  
it.

As for other people’s markup not validating, you may be  
right, but I think you may be wrong.

I’ve heard it again and again that lots of AJAX and JS  
errors and difficulties are related to non-validating  
markup.

You may want to look at:

[http://www.cosinux.org/blogs/dam/pages/rails-tidy](http://www.cosinux.org/blogs/dam/pages/rails-tidy)

[http://wiki.rubyonrails.org/rails/pages/Assert+Valid+Markup+Plugin](http://wiki.rubyonrails.org/rails/pages/Assert+Valid+Markup+Plugin)

And, I’m referencng my own test\_helper.rb based routines, which are  
in a large part developed by “Scott R.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

This requires two lines in your environment.rb file:

VALIDATE\_W3C = true  
VALIDATE\_TIDY = true

I use the Tidy validator when I’m offline, and both when I’m online.

[http://homepage.mac.com/tmornini/test\_helper.rb](http://homepage.mac.com/tmornini/test_helper.rb)

–  
– Tom M.

---

<div class="post-metadata">

**Author:** ![Duane\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@Duane\_J](https://www.ruby-forum.com/u/Duane_J)\
**Post date:** [February 28, 2006, 2:27pm UTC](https://www.ruby-forum.com/t/ann-bundled-resource-v-0-9/53167/14 "2006-02-28T14:27:00Z")

</div>

On Tue, 2006-02-28 at 22:15 +1100, David M. wrote:

> I’m not comprehending here, and maybe seeing a working RHTML example  
> would help knock it into my thick skull.

* * *

for a number of reasons, I gave up on dynarch calendar and used the  
‘DatePicker’ calendar.

It looks similar, is much simpler to install and make functional and  
doesn’t require anything other than it’s js, css & helper file.

Craig

---

<div class="post-metadata">

**Author:** ![Duane\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@Duane\_J](https://www.ruby-forum.com/u/Duane_J)\
**Post date:** [February 28, 2006, 3:37pm UTC](https://www.ruby-forum.com/t/ann-bundled-resource-v-0-9/53167/15 "2006-02-28T15:37:24Z")

</div>

As a side not to this whole discussion, I found the same results at the  
originating post until I embedded the setup call for the dynarch  
calendar  
in-line with the view that the calendar was to appear in, as opposed to  
just  
sticking it at the top of a template. In my case I put:

```
<% require_bundle :dynarch_calendar,
:color => 'brown',
:language => 'en',
:icon => '/images/MISC_calendar.gif' %>

```

Right before my first call to the calendar on a view. You’re  
requirements  
are of course different. But it’s at least one more thing to try before  
you  
give up the ghost.

D. Taylor S.,  
Reality Technician

---

<div class="post-metadata">

**Author:** ![Duane\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@Duane\_J](https://www.ruby-forum.com/u/Duane_J)\
**Post date:** [February 28, 2006, 5:28pm UTC](https://www.ruby-forum.com/t/ann-bundled-resource-v-0-9/53167/16 "2006-02-28T17:28:55Z")

</div>

Ha! I can’t believe I didn’t mention the dependency in the docs.  
The dynarch\_calendar (at this point) depends on prototype.js, so be  
sure to include that in your headers.

If you’re using the latest bundled\_resource from subversion, you can  
use “resource\_tags” and it will automatically include that for you.

Duane

---

<div class="post-metadata">

**Author:** ![Duane\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@Duane\_J](https://www.ruby-forum.com/u/Duane_J)\
**Post date:** [February 28, 2006, 5:35pm UTC](https://www.ruby-forum.com/t/ann-bundled-resource-v-0-9/53167/17 "2006-02-28T17:35:07Z")

</div>

On Feb 28, 2006, at 7:36 AM, D. Taylor S. wrote:

> Right before my first call to the calendar on a view. You’re  
> requirements are of course different. But it’s at least one more  
> thing to try before you give up the ghost.
> 
> D. Taylor S.,  
> Reality Technician

Thanks, Taylor. That’s something else I missed in the docs.  
Definitely want to put the require\_bundle call in the view where you  
are calling dynarch\_date\_select (and friends).

I’ll be writing up some docs on this plugin soon enough. Sorry to  
throw anyone for a loop!

Duane J.  
(canadaduane)  
[http://blog.inquirylabs.com/](http://blog.inquirylabs.com/)

---

<div class="post-metadata">

**Author:** ![Duane\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@Duane\_J](https://www.ruby-forum.com/u/Duane_J)\
**Post date:** [February 28, 2006, 12:18pm UTC](https://www.ruby-forum.com/t/ann-bundled-resource-v-0-9/53167/18 "2006-02-28T12:18:42Z")

</div>

All right, thanks Tom,

I’ll get stuck into creating valid XHTML tomorrow (somewhere off in  
the distance, I hear a voice asking “When are you coming to bed?”).  
I’m still concerned that a lot of the invalid stuff is being generated  
by e.g. \<% require\_bundle :dynarch\_calendar %\>, but maybe it’ll be  
clearer after a night’s sleep.

If anyone can post a (trivial) sample RHTML file that displays the  
dynarch\_calendar, I’d greatly appreciate it. There’s still something  
I’m not comprehending here, and maybe seeing a working RHTML example  
would help knock it into my thick skull.

Thanks again

Dave M.

---

<div class="post-metadata">

**Author:** ![Duane\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@Duane\_J](https://www.ruby-forum.com/u/Duane_J)\
**Post date:** [February 28, 2006, 11:58pm UTC](https://www.ruby-forum.com/t/ann-bundled-resource-v-0-9/53167/19 "2006-02-28T23:58:25Z")

</div>

Thanks Duane,

That was it - I had to put \<%= define\_javascript\_functions %\> in the

 section of my page, and then everything worked fine.

Thanks also to everyone else who responded; this is a great mailing  
list because of people like yourselves, willing to help out a guy  
who’s struggling. I wish more lists were like this one.

Regards

Dave M.

---

<div class="post-metadata">

**Author:** ![Duane\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@Duane\_J](https://www.ruby-forum.com/u/Duane_J)\
**Post date:** [March 1, 2006, 12:59am UTC](https://www.ruby-forum.com/t/ann-bundled-resource-v-0-9/53167/20 "2006-03-01T00:59:04Z")

</div>

On Wed, 2006-03-01 at 09:58 +1100, David M. wrote:

> Thanks Duane,
> 
> That was it - I had to put \<%= define\_javascript\_functions %\> in the
> 
> section of my page, and then everything worked fine.
> 
> Thanks also to everyone else who responded; this is a great mailing  
> list because of people like yourselves, willing to help out a guy  
> who’s struggling. I wish more lists were like this one.

* * *

don’t know what lists you been looking at but I know a bunch of them  
that are helpful.

Craig

[Next page](https://www.ruby-forum.com/t/ann-bundled-resource-v-0-9/53167.md?page=2)
