Hi everyone,
I’m using currently Ruby 1.8.4, Rails 1.2.3, Rake 0.7.2, Engines 1.2, &
Datebocks 2.03. I followed the instructions on
http://datebocks.inimit.com/ I’m getting this error undefined method
`engine_image’.
Here is the code:
Start Date:
<%= datebocks_field('table_rate', 'date_column') %>
I added ‘include DatebocksEngine’ to both the application and
application helper, also, I added
<%= engine_javascript “datebocks_engine”, “calendar”,
“lang/calendar-en”, “calendar-setup” %>
<%= engine_stylesheet “datebocks_engine”, “calendar-win2k-cold-1.css”
%>
to my layout.
Lastly I tried adding Engines.start :datebocks to my environment.rb, but
that doesn’t work with Engines 1.2
Did anyone successfully get Datebocks to work on Engines 1.2? Is there
a way to revert back to an older version? Or if someone did get it to
work with different versions, could you please tell me how to install
older versions of Rails or Engines to get this to work. I do not have
any previous versions of Rails installed on my computer. There really
isn’t that much about Datebocks and Engines 1.2. Thanks in advance
dlo
If your using rails 1.2+ then just install it as a plugin:
http://atmos.org/2007/2/1/datebocks-as-a-plugin
I couldn’t get it to work but other people seem to not have a problem.
I just wanted to add I have a colleague that still has Rails 1.1.6 and
no engines. Can anyone give the proper install instructions for either
my colleague’s or my computer. Your help is greatly appreciated.
Plugin in link seems to be broken. Does anyone have another source for
it?
-Larry
On 3/21/07, jko170 [email protected] wrote:
If your using rails 1.2+ then just install it as a plugin:
http://atmos.org/2007/2/1/datebocks-as-a-plugin
I couldn’t get it to work but other people seem to not have a problem.
–
Best Regards,
-Larry
“Work, work, work…there is no satisfactory alternative.”
— E.Taft Benson
On Thu, 2007-03-22 at 13:15 -0700, Nathaniel B. wrote:
If you wait about an hour you’ll see the brand spankin new Datebocks
plugin under a new name, but not a fork… more of an evolutionary
step.
Cleaned up all the code and added a bunch of new features…
I’'ll post an announcement on here when it’s ready.
waiting with baited breath - thanks
–
Craig W. [email protected]
If you wait about an hour you’ll see the brand spankin new Datebocks
plugin under a new name, but not a fork… more of an evolutionary
step.
Cleaned up all the code and added a bunch of new features…
I’'ll post an announcement on here when it’s ready.
Nathaniel.
On 3/22/07, Larry K. [email protected] wrote:
--- E.Taft Benson
–
Nathaniel Steven Henry Brown
Toll Free: 1-877-446-4647
Vancouver: 604-724-6624
Just announced it…
http://datetime.toolbocks.com
On 3/22/07, Craig W. [email protected] wrote:
waiting with baited breath - thanks
–
Craig W. [email protected]
–
Nathaniel Steven Henry Brown
Toll Free: 1-877-446-4647
Vancouver: 604-724-6624
Thanks…
2 thoughts…
1 - perhaps it’s just my Linux system but there isn’t much contrast and
the referenced web page is tough to read.
2 - It would appear that there is no easy way to switch from the old
datebocks engine to this one and thus, there is no instruction on what
to remove/replace but it doesn’t seem like it would too much of a leap.
Craig
On Thu, 2007-03-22 at 14:23 -0700, Nathaniel B. wrote:
–
Craig W. [email protected]
Hi everyone.
First, thanks for the update Nathaniel!!! I’m getting this error and am
wondering if anyone else is getting this error.
undefined method `javascript_rel_tag’
Here is my code:
<%= controller.action_name %>
<%= stylesheet_link_tag 'scaffold', 'test' %>
<%= javascript_rel_tag 'prototype' %>
<%= javascript_rel_tag 'datetime_toolbocks',
'datetime_toolbocks_window', 'calendar', 'lang/calendar-en',
'calendar-setup', :plugin => 'datetime_toolbocks' %>
<%= stylesheet_link_tag 'datetime_toolbocks',
'calendar-win2k-cold-1.css', :plugin => 'datetime_toolbocks' %>
Any help would be greatly appreciated.
dlo
Nathaniel B. wrote:
Remove the old plugin, ensure you are using engines 1.2, then replace
the old datebocks_field with toolbocks_date_select helper method.
Next is to do the javascripts & stylesheet includes within the head
tags, which is outlined on the website.
Colors should be better now, so more details on the site
http://datetime.toolbocks.com
Nathaniel.
On 3/22/07, Craig W. [email protected] wrote:
to remove/replace but it doesn’t seem like it would too much of a leap.
On Thu, 2007-03-22 at 13:15 -0700, Nathaniel B. wrote:
–
Nathaniel Steven Henry Brown
Toll Free: 1-877-446-4647
Vancouver: 604-724-6624
Ok, nevermind. I noticed the instructions changed. Did anyone
successfully implement the plugin? Please reply
dlo
dlo wrote:
Hi everyone.
First, thanks for the update Nathaniel!!! I’m getting this error and am
wondering if anyone else is getting this error.
undefined method `javascript_rel_tag’
Remove the old plugin, ensure you are using engines 1.2, then replace
the old datebocks_field with toolbocks_date_select helper method.
Next is to do the javascripts & stylesheet includes within the head
tags, which is outlined on the website.
Colors should be better now, so more details on the site
http://datetime.toolbocks.com
Nathaniel.
On 3/22/07, Craig W. [email protected] wrote:
to remove/replace but it doesn’t seem like it would too much of a leap.
On Thu, 2007-03-22 at 13:15 -0700, Nathaniel B. wrote:
–
Nathaniel Steven Henry Brown
Toll Free: 1-877-446-4647
Vancouver: 604-724-6624
Yea, sorry about the typo Seth caught it earlier.
On 3/22/07, dlo [email protected] wrote:
wondering if anyone else is getting this error.
undefined method `javascript_rel_tag’
–
Posted via http://www.ruby-forum.com/.
–
Nathaniel Steven Henry Brown
Toll Free: 1-877-446-4647
Vancouver: 604-724-6624
Ok Nathaniel,
I’m going to need your help. I’m TOOO much of a noob here. Ok so after
following the instructions on http://datetime.toolbocks.com/ which
differ from the README a little, I still can’t get the control to show.
Ok so I’m ok up to I guess step 5. Am I suppose to add
toolbocks_date_select(‘event’, ‘start_date’) to a helper.rb? Or, just
start using it as is in a view. For example here is my code in my
partial form:
<%= toolbocks_date_select :table_rate, :start_date, { :format =>
‘us’, :autoRollOver => false} %>
Model Name is table_rate.rb and I want the name of the control to be
start_date.
The commented code is the original date_select code. Am I using it
right? Am I forgetting anything? I did add the config.plugins to my
environment.rb. Nothing shows up on my view. If I view my pagesource I
see this:
You’ve been a lot of help already, but I guess I just need that extra
step. Thanks
dlo
Nathaniel,
Thanks for getting back so quick. I appreciate a lot. I still don’t
see the control. I’m using Firefox. Followed the instructions once
again. I tried changing an app that once was developed with rails
1.1.6. Could that be a problem since now I’m using Rails 1.2.3 &
Engines 1.2? Lastly I don’t know what else I could show you. Here is
the line of code in my partial form again.
<%= toolbocks_date_select 'table_rate', 'start_date', { :format =>
‘us’, :autoRollOver => false } %>
Just like your message above. Am I missing something? If you need some
more information please let me know and I will post whatever you need.
If I need to contact other than this forum, please also let me know. So
the problem once again is that the control is still not showing but can
be seen in the ‘View Page Source’. Thanks for everything up to this
point and hope to hear from you or anyone who has successfully
implemented this control.
dlo
Nathaniel B. wrote:
Hey dlo,
Thanks for asking. Seems you have run across a bug I didn’t catch
earlier, and I managed to squash a couple more while I was at it as
well.
If you update the plugin with the latest code at…
http://svn.toolbocks.com/plugins/datetime_toolbocks/
You’ll get v3.0.1, which has it fixed. The website even has a few more
samples of what you can do as well.
Also…
<%= toolbocks_date_select ‘table_rate’, ‘start_date’, { :value =>
session[:startdate] } %>
Should be what you are after. You might need to pass in a format as
well, depending on how you want it to look. Options for that are:
[‘dd/mm/yyyy’, ‘dd-mm-yyyy’, ‘mm/dd/yyyy’, ‘mm.dd.yyyy’,
‘yyyy-mm-dd’, ‘iso’, ‘de’, ‘us’]
Hey dlo,
Thanks for asking. Seems you have run across a bug I didn’t catch
earlier, and I managed to squash a couple more while I was at it as
well.
If you update the plugin with the latest code at…
http://svn.toolbocks.com/plugins/datetime_toolbocks/
You’ll get v3.0.1, which has it fixed. The website even has a few more
samples of what you can do as well.
Also…
<%= toolbocks_date_select ‘table_rate’, ‘start_date’, { :value =>
session[:startdate] } %>
Should be what you are after. You might need to pass in a format as
well, depending on how you want it to look. Options for that are:
[‘dd/mm/yyyy’, ‘dd-mm-yyyy’, ‘mm/dd/yyyy’, ‘mm.dd.yyyy’,
‘yyyy-mm-dd’, ‘iso’, ‘de’, ‘us’]
Nathaniel.
On 3/22/07, dlo [email protected] wrote:
right? Am I forgetting anything? I did add the config.plugins to my
autoRollOver: false,
–
Posted via http://www.ruby-forum.com/.
–
Nathaniel Steven Henry Brown
Toll Free: 1-877-446-4647
Vancouver: 604-724-6624
Hey Dlo,
Paste the result of the javascript. If you have firebug installed, try
loading that up?
Or if you are on some other browser… let me know which one and the
version.
Nathaniel.
On 3/23/07, dlo [email protected] wrote:
<%= toolbocks_date_select 'table_rate', 'start_date', { :format =>
dlo
http://svn.toolbocks.com/plugins/datetime_toolbocks/
well, depending on how you want it to look. Options for that are:
[‘dd/mm/yyyy’, ‘dd-mm-yyyy’, ‘mm/dd/yyyy’, ‘mm.dd.yyyy’,
‘yyyy-mm-dd’, ‘iso’, ‘de’, ‘us’]
–
Posted via http://www.ruby-forum.com/.
–
Nathaniel Steven Henry Brown
Toll Free: 1-877-446-4647
Vancouver: 604-724-6624
Nathaniel,
Just curious as to why you’ve got this wrapped up in an engine when a
plugin would seem to suffice? Seems a bit overkill for something that
inserts javascript and a text field onto a page. Or am I missing
something?
Glenn
Just released a new version. There are some major bug fixes that have
been squashed in relation to the tool not working with Safari and IE7.
Everyone is recommended to upgrade.
http://datetime.toolbocks.com
Nathaniel.
On 3/26/07, Nathaniel B. [email protected] wrote:
assets, and all I need to do is update my svn and restart the server
to Perl, where using one simply saves more time than using the other,
inserts javascript and a text field onto a page. Or am I missing
Nathaniel Steven Henry Brown
Toll Free: 1-877-446-4647
Vancouver: 604-724-6624
–
Nathaniel Steven Henry Brown
Toll Free: 1-877-446-4647
Vancouver: 604-724-6624
Those who want to discourage you from using engines really should
stop, but they unfortunately wont as they are blinded by some unknown
force that compels them to cause needless fear and doubt in those that
are considering it.
It was a simple and honest question.
What measure to you have to assume that an “engine” is anything more
than a “plugin” anyways?
Overkill in the sense that beyond downloading/installing the dynarch
calendar plugin the rest of ruby code could be easily wrapped up in a
single method within application_helper
But as you said, engines allow you to manage the dynach assets.
On 3/27/07, glenn [email protected] wrote:
Those who want to discourage you from using engines really should
stop, but they unfortunately wont as they are blinded by some unknown
force that compels them to cause needless fear and doubt in those that
are considering it.
It was a simple and honest question.
My line was following the question of comparing engines vs plugins,
not engine vs bare assets.
What measure to you have to assume that an “engine” is anything more
than a “plugin” anyways?
Overkill in the sense that beyond downloading/installing the dynarch
calendar plugin the rest of ruby code could be easily wrapped up in a
single method within application_helper
But as you said, engines allow you to manage the dynach assets.
As you referenced, having the engine manage the assets allows for very
simple upgrades, such as the one I just did for v3.0.3. All you should
need to do is simply do an svn up and restart the server, and you will
get the lastest copy of the dynarch libs as well as any javascript
libs that have been modified. If I did changes to the helper method,
no need to go into your own and change it up, that’s all automatically
done for you.
In simple, engines just make it simple, and save time.
Nathaniel.
–
Nathaniel Steven Henry Brown
Toll Free: 1-877-446-4647
Vancouver: 604-724-6624