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: <td> Start Date: <%= datebocks_field(''table_rate'', ''date_column'') %> </td> 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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Plugin in link seems to be broken. Does anyone have another source for it? -Larry On 3/21/07, jko170 <jko170-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 Kelly <ldk2005-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Plugin in link seems to be broken. Does anyone have another source for it? > -Larry > > On 3/21/07, jko170 <jko170-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > 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 > > > >-- Nathaniel Steven Henry Brown Toll Free: 1-877-446-4647 Vancouver: 604-724-6624 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Thu, 2007-03-22 at 13:15 -0700, Nathaniel Brown 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 White <craig-CnJ8jr4MGtxl57MIdRCFDg@public.gmane.org> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Just announced it.. http://datetime.toolbocks.com On 3/22/07, Craig White <craig-CnJ8jr4MGtxl57MIdRCFDg@public.gmane.org> wrote:> > On Thu, 2007-03-22 at 13:15 -0700, Nathaniel Brown 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 White <craig-CnJ8jr4MGtxl57MIdRCFDg@public.gmane.org> > > > > >-- Nathaniel Steven Henry Brown Toll Free: 1-877-446-4647 Vancouver: 604-724-6624 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 Brown wrote:> Just announced it.. > > http://datetime.toolbocks.com > > On 3/22/07, Craig White <craig-CnJ8jr4MGtxl57MIdRCFDg@public.gmane.org> wrote: > > > > On Thu, 2007-03-22 at 13:15 -0700, Nathaniel Brown 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 White <craig-CnJ8jr4MGtxl57MIdRCFDg@public.gmane.org> > > > > > > > > > > >-- Craig White <craig-CnJ8jr4MGtxl57MIdRCFDg@public.gmane.org> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 White <craig-CnJ8jr4MGtxl57MIdRCFDg@public.gmane.org> wrote:> > 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 Brown wrote: > > Just announced it.. > > > > http://datetime.toolbocks.com > > > > On 3/22/07, Craig White <craig-CnJ8jr4MGtxl57MIdRCFDg@public.gmane.org> wrote: > > > > > > On Thu, 2007-03-22 at 13:15 -0700, Nathaniel Brown 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 White <craig-CnJ8jr4MGtxl57MIdRCFDg@public.gmane.org> > > > > > > > > > > > > > > > > > > -- > Craig White <craig-CnJ8jr4MGtxl57MIdRCFDg@public.gmane.org> > > > > >-- Nathaniel Steven Henry Brown Toll Free: 1-877-446-4647 Vancouver: 604-724-6624 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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: <head> <title><%= controller.action_name %></title> <!--[if lt IE 7]> <style type="text/css" media="screen"> #menuh{float:none;} body{behavior:url(csshover.htc); font-size:100%;} #menuh ul li{float:left; width: 100%;} #menuh a{height:1%;font:bold 0.7em/1.4em arial, sans-serif;} </style> <![endif]--> <%= 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'' %> </head> Any help would be greatly appreciated. dlo Nathaniel Brown 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 White <craig-CnJ8jr4MGtxl57MIdRCFDg@public.gmane.org> 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 Brown wrote: >> > > >> >> >> > >> > > > -- > Nathaniel Steven Henry Brown > > Toll Free: 1-877-446-4647 > Vancouver: 604-724-6624-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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'' > >-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Yea, sorry about the typo :) Seth caught it earlier. On 3/22/07, dlo <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > 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'' > > > > > > -- > Posted via http://www.ruby-forum.com/. > > > >-- Nathaniel Steven Henry Brown Toll Free: 1-877-446-4647 Vancouver: 604-724-6624 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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: <!--<%= date_select ''table_rate'', ''start_date'', :start_year => 2007, :order => [:month, :day, :year], :use_month_numbers => true, :value => session[:startdate] %>--> <%= 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: <script type="text/javascript"> new DatetimeToolbocks({ elementId: ''DatetimeToolbocksTable_rateStart_date'', inputName: ''table_rate[start_date]'', inputValue: '''', showHelp: , format: ''us'', autoRollOver: false, calendarOptions: {align:"''Br''"} }); </script> You''ve been a lot of help already, but I guess I just need that extra step. Thanks dlo -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > 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: > > <!--<%= date_select ''table_rate'', ''start_date'', :start_year => 2007, > :order => [:month, :day, :year], :use_month_numbers => true, :value => > session[:startdate] %>--> > <%= 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: > > <script type="text/javascript"> > new DatetimeToolbocks({ > elementId: ''DatetimeToolbocksTable_rateStart_date'', > inputName: ''table_rate[start_date]'', > inputValue: '''', > showHelp: , > format: ''us'', > autoRollOver: false, > calendarOptions: {align:"''Br''"} > }); > </script> > > You''ve been a lot of help already, but I guess I just need that extra > step. Thanks > dlo > > > > > > -- > Posted via http://www.ruby-forum.com/. > > > >-- Nathaniel Steven Henry Brown Toll Free: 1-877-446-4647 Vancouver: 604-724-6624 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 Brown 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''] >-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > 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 Brown 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''] > > > > -- > Posted via http://www.ruby-forum.com/. > > > >-- Nathaniel Steven Henry Brown Toll Free: 1-877-446-4647 Vancouver: 604-724-6624 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Whether its a plugin or an engine doesn''t make a difference. 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. Simple as it gets, engines provide someting that Plugins don''t. An intuitive way to manage assets. On load, all assets are moved over into the public directory. I consistently find myself modifying the assets, and all I need to do is update my svn and restart the server to see them active. No third step, running a rake task. I have been considering having the engine also double as a standard plugin with an associative rake task, just to please those that consider it "overkill", but that is way on the back burner. What measure to you have to assume that an "engine" is anything more than a "plugin" anyways? Have you done any benchmarks to see if it does indeed cause more load on the app? I seriously doubt this is not the case, and if it is, the numbers would be similar to comparing Ruby to Perl, where using one simply saves more time than using the other, forget about the "overkill" and start comparing what really matters. Nathaniel. On 3/26/07, glenn <glenn.gillen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > 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 > > > > >-- Nathaniel Steven Henry Brown Toll Free: 1-877-446-4647 Vancouver: 604-724-6624 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 Brown <nshb-wgYSSEAWXinQT0dZR+AlfA@public.gmane.org> wrote:> Whether its a plugin or an engine doesn''t make a difference. > > 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. > > Simple as it gets, engines provide someting that Plugins don''t. An > intuitive way to manage assets. On load, all assets are moved over > into the public directory. I consistently find myself modifying the > assets, and all I need to do is update my svn and restart the server > to see them active. No third step, running a rake task. > > I have been considering having the engine also double as a standard > plugin with an associative rake task, just to please those that > consider it "overkill", but that is way on the back burner. > > What measure to you have to assume that an "engine" is anything more > than a "plugin" anyways? Have you done any benchmarks to see if it > does indeed cause more load on the app? I seriously doubt this is not > the case, and if it is, the numbers would be similar to comparing Ruby > to Perl, where using one simply saves more time than using the other, > forget about the "overkill" and start comparing what really matters. > > Nathaniel. > > On 3/26/07, glenn <glenn.gillen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > 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 > > > > > > > > > > > > > -- > 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> 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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 3/27/07, glenn <glenn.gillen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Nathaniel, Sorry we had a 3 day weekend here. So after reading your posts seem there is a newer version out. Tried it once again and still nothing. Does AJAX interfere with this datebocks? Does use of another stylesheet interfere with this plugin? I tried using datebocks in Firefox 2.0.0.3 with a Noia skin and in IE 7.0.5730.11 Here is the view page source output of datebocks: <script type="text/javascript"> new DatetimeToolbocks({ elementId: ''DatetimeToolbocksTableRateStartDate'', inputName: ''table_rate[start_date]'', inputValue: '''', showHelp: true, format: ''us'', autoRollOver: true, calendarOptions: {align:"Br"} }); </script> Not exactly sure if that is what you''re looking for. Line in my partial form. <%= toolbocks_date_select ''table_rate'', ''start_date'', { :format => ''us'' } %> Using Ruby 1.8.4 and Rails 1.2.3. Thanks. daniel -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Very strange. Does it at least work when you visit http://datetime.toolbocks.com ? You might have to restart your server if you didn''t already do so. You ma have old javascript old in your public dir which gets updated on restart. Also, if you have a URL I can check out, I wouldn''t mind seeing it for myself. There should be a javascript error that appears. If you can paste that in here, would definaely help track down the reason why it''s not working for you. Nathaniel. On 3/27/07, dlo <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Nathaniel, > > Sorry we had a 3 day weekend here. So after reading your posts seem > there is a newer version out. Tried it once again and still nothing. > Does AJAX interfere with this datebocks? Does use of another stylesheet > interfere with this plugin? I tried using datebocks in Firefox 2.0.0.3 > with a Noia skin and in IE 7.0.5730.11 > > Here is the view page source output of datebocks: > > <script type="text/javascript"> > new DatetimeToolbocks({ > elementId: ''DatetimeToolbocksTableRateStartDate'', > inputName: ''table_rate[start_date]'', > inputValue: '''', > showHelp: true, > format: ''us'', > autoRollOver: true, > calendarOptions: {align:"Br"} > }); > </script> > > Not exactly sure if that is what you''re looking for. Line in my partial > form. <%= toolbocks_date_select ''table_rate'', ''start_date'', { :format > => ''us'' } %> > > Using Ruby 1.8.4 and Rails 1.2.3. > > Thanks. > > daniel > > -- > Posted via http://www.ruby-forum.com/. > > > >-- Nathaniel Steven Henry Brown Toll Free: 1-877-446-4647 Vancouver: 604-724-6624 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Nathaniel, Ok, I don''t have a URL but I''m willing to send you my project over. Please email me at spankdan-/E1597aS9LQAvxtiuMwx3w@public.gmane.org But checking the error console I get this error: Error: DatetimeToolbocks is not defined Source file http://localhost:3000/table_rate/create Line 153 I click on the error and it brings me to, <script type="text/javascript"> new DatetimeToolbocks({ elementId: ''DatetimeToolbocksTableRateStartDate'', inputName: ''table_rate[start_date]'', inputValue: '''', showHelp: true, format: ''yyyy-mm-dd'', autoRollOver: true, calendarOptions: {align:"Br"} }); </script> where new DatetimeToolbocks is highlighted. The line in my code is like this. <%= toolbocks_date_select ''table_rate'', ''start_date'' %> Hope to hear from you soon Nathaniel and yes I can see the control on your page. dlo Nathaniel Brown wrote:> Very strange. Does it at least work when you visit > http://datetime.toolbocks.com ? > > You might have to restart your server if you didn''t already do so. You > ma have old javascript old in your public dir which gets updated on > restart. > > Also, if you have a URL I can check out, I wouldn''t mind seeing it for > myself. There should be a javascript error that appears. If you can > paste that in here, would definaely help track down the reason why > it''s not working for you. > > Nathaniel.-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi dlo, I was able to successfully install it. BTW, I was using Ruby 1.8.6, Rails 1.2.3, Engines 1.2, and Rake 0.7.2. It took me about 20 minutes to get a test application up and operational using the most current version of Datetime Toolbocks. -Conrad On 3/21/07, dlo <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > 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: > > <td> > Start Date: > <%= datebocks_field(''table_rate'', ''date_column'') %> > </td> > > 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 > > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
What up Conrad. I''m using the same Ruby, Rails, etc. I just don''t get it. I don''t know what I''m doing wrong. Thanks though. Do you mind putting your code as far as the one used in the form to show the control? Thanks dlo Conrad Taylor wrote:> Hi dlo, I was able to successfully install it. BTW, I was using Ruby > 1.8.6, Rails 1.2.3, Engines 1.2, and Rake 0.7.2. It took me about 20 > minutes to get a test application up and operational using the most > current version of Datetime Toolbocks. > > -Conrad-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hey Dlo, Sounds like you might not be including all the javascripts as required. You can send it to me at nshb(at)inimit.com If you have any externals, use svn export before you tar/zip it up so I make sure I get the same. Nathaniel. On 3/28/07, dlo <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Nathaniel, > > Ok, I don''t have a URL but I''m willing to send you my project over. > Please email me at spankdan-/E1597aS9LQAvxtiuMwx3w@public.gmane.org But checking the error console I > get this error: > > Error: DatetimeToolbocks is not defined > Source file http://localhost:3000/table_rate/create Line 153 > > I click on the error and it brings me to, > > <script type="text/javascript"> > new DatetimeToolbocks({ > elementId: ''DatetimeToolbocksTableRateStartDate'', > inputName: ''table_rate[start_date]'', > inputValue: '''', > showHelp: true, > format: ''yyyy-mm-dd'', > autoRollOver: true, > calendarOptions: {align:"Br"} > }); > </script> > > where new DatetimeToolbocks is highlighted. > > The line in my code is like this. > > <%= toolbocks_date_select ''table_rate'', ''start_date'' %> > > Hope to hear from you soon Nathaniel and yes I can see the control on > your page. > > dlo > > Nathaniel Brown wrote: > > Very strange. Does it at least work when you visit > > http://datetime.toolbocks.com ? > > > > You might have to restart your server if you didn''t already do so. You > > ma have old javascript old in your public dir which gets updated on > > restart. > > > > Also, if you have a URL I can check out, I wouldn''t mind seeing it for > > myself. There should be a javascript error that appears. If you can > > paste that in here, would definaely help track down the reason why > > it''s not working for you. > > > > Nathaniel. > > > > -- > Posted via http://www.ruby-forum.com/. > > > >-- Nathaniel Steven Henry Brown Toll Free: 1-877-446-4647 Vancouver: 604-724-6624 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hey Conrad, You could have used http://svn.toolbocks.com/demos/datetime_toolbocks/ Instantly up and running app :) Dlo, that might work for you as well. As a working reference anyways. That''s whats running on http://datetime.toolbocks.com Nathaniel. On 3/28/07, Conrad Taylor <conradwt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hi dlo, I was able to successfully install it. BTW, I was using Ruby > 1.8.6, Rails 1.2.3, Engines 1.2, and Rake 0.7.2. It took me about 20 > minutes to get a test application up and operational using the most > current version of Datetime Toolbocks. > > -Conrad > > On 3/21/07, dlo <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > > > 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: > > > > <td> > > Start Date: > > <%= datebocks_field(''table_rate'', ''date_column'') %> > > </td> > > > > 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 > > > > -- > > Posted via http://www.ruby-forum.com/. > > > > > > > > > > >-- Nathaniel Steven Henry Brown Toll Free: 1-877-446-4647 Vancouver: 604-724-6624 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi Nathaniel, I was looking for option(s) to create an inline calendar using the datetime toolbooks? -Conrad On 3/29/07, Nathaniel Brown <nshb-wgYSSEAWXinQT0dZR+AlfA@public.gmane.org> wrote:> > Hey Conrad, > > You could have used > > http://svn.toolbocks.com/demos/datetime_toolbocks/ > > Instantly up and running app :) > > Dlo, that might work for you as well. As a working reference anyways. > That''s whats running on http://datetime.toolbocks.com > > Nathaniel. > > On 3/28/07, Conrad Taylor <conradwt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Hi dlo, I was able to successfully install it. BTW, I was using Ruby > > 1.8.6, Rails 1.2.3, Engines 1.2, and Rake 0.7.2. It took me about 20 > > minutes to get a test application up and operational using the most > > current version of Datetime Toolbocks. > > > > -Conrad > > > > On 3/21/07, dlo <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > > > > > 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: > > > > > > <td> > > > Start Date: > > > <%= datebocks_field(''table_rate'', ''date_column'') %> > > > </td> > > > > > > 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 > > > > > > -- > > > Posted via http://www.ruby-forum.com/. > > > > > > > > > > > > > > > > > > > > -- > Nathaniel Steven Henry Brown > > Toll Free: 1-877-446-4647 > Vancouver: 604-724-6624 > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hey Conrad, As I said, I haven''t done this before, so there is no "simple" way to do it yet with the library, but the library will provide full access to integrate it. The calendar_options param passes through all the options to the Calendar.setup initialization. http://www.dynarch.com/demos/jscalendar/simple-2.html So.. something like this would work.... ...... ok so axe all that. I just spent the morning hacking away at it :) And voila... v3.0.3 You can now do this.. <div style="float: right;" id="calendar-container"></div> <%= toolbocks_date_select :model, :column, {}, { :flat => ''calendar-container'' } %> or to have Datetime Toolbocks do everything for you and make it even simpler, try this.. <%= toolbocks_date_select(:model, :column, {}, { :flat => true }) %> or to do something like the example in the dynarch.com website above.. <!-- Use a callback for the flat calendar//--> <script type="text/javascript"> function dateChanged(calendar) { // Beware that this function is called even if the end-user only // changed the month/year. In order to determine if a date was // clicked you can use the dateClicked property of the calendar: if (calendar.dateClicked) { // OK, a date was clicked, redirect to /yyyy/mm/dd/index.php var y = calendar.date.getFullYear(); var m = calendar.date.getMonth(); // integer, 0..11 var d = calendar.date.getDate(); // integer, 1..31 var url = "/search/" + y + "/" + m + "/" + d; // redirect... // window.location = url; // announce a possible URL to go to alert(url); } }; </script> <%= toolbocks_date_select(:model, :column, {}, { :flat => true, :flatCallback => ''javascript:dateChanged'' }) %> You can also checkout all the demos I use to test with here.. http://svn.toolbocks.com/plugins/datetime_toolbocks/app/views/datetime_toolbocks/_demos.rhtml Enjoy! Nathaniel. On 3/29/07, Conrad Taylor <conradwt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hi Nathaniel, I was looking for option(s) to create an inline calendar > using the datetime toolbooks? > > -Conrad > > On 3/29/07, Nathaniel Brown <nshb-wgYSSEAWXinQT0dZR+AlfA@public.gmane.org> wrote: > > > > Hey Conrad, > > > > You could have used > > > > http://svn.toolbocks.com/demos/datetime_toolbocks/ > > > > Instantly up and running app :) > > > > Dlo, that might work for you as well. As a working reference anyways. > > That''s whats running on http://datetime.toolbocks.com > > > > Nathaniel. > > > > On 3/28/07, Conrad Taylor <conradwt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > Hi dlo, I was able to successfully install it. BTW, I was using Ruby > > > 1.8.6, Rails 1.2.3, Engines 1.2, and Rake 0.7.2. It took me about 20 > > > minutes to get a test application up and operational using the most > > > current version of Datetime Toolbocks. > > > > > > -Conrad > > > > > > On 3/21/07, dlo <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > > > > > > > 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: > > > > > > > > <td> > > > > Start Date: > > > > <%= datebocks_field(''table_rate'', ''date_column'') %> > > > > </td> > > > > > > > > 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 > > > > > > > > -- > > > > Posted via http://www.ruby-forum.com/. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hey Nathaniel, this is some very good work. Now, is it possible to to disable the input field because on an new/edit view screen I would like them to simply use the calendar to set/change the date? Thanks, -Conrad On 3/29/07, Nathaniel Brown <nshb-wgYSSEAWXinQT0dZR+AlfA@public.gmane.org> wrote:> > Hey Conrad, > > As I said, I haven''t done this before, so there is no "simple" way to > do it yet with the library, but the library will provide full access > to integrate it. The calendar_options param passes through all the > options to the Calendar.setup initialization. > > http://www.dynarch.com/demos/jscalendar/simple-2.html > > So.. something like this would work.... > > > ...... ok so axe all that. > > I just spent the morning hacking away at it :) And voila... v3.0.3 > > You can now do this.. > > <div style="float: right;" id="calendar-container"></div> > <%= toolbocks_date_select :model, :column, {}, { :flat => > ''calendar-container'' } %> > > or to have Datetime Toolbocks do everything for you and make it even > simpler, try this.. > > <%= toolbocks_date_select(:model, :column, {}, { :flat => true }) %> > > or to do something like the example in the dynarch.com website above.. > > <!-- Use a callback for the flat calendar//--> > <script type="text/javascript"> > function dateChanged(calendar) { > // Beware that this function is called even if the end-user only > // changed the month/year. In order to determine if a date was > // clicked you can use the dateClicked property of the calendar: > if (calendar.dateClicked) { > // OK, a date was clicked, redirect to /yyyy/mm/dd/index.php > var y = calendar.date.getFullYear(); > var m = calendar.date.getMonth(); // integer, 0..11 > var d = calendar.date.getDate(); // integer, 1..31 > > var url = "/search/" + y + "/" + m + "/" + d; > > // redirect... > // window.location = url; > > // announce a possible URL to go to > alert(url); > } > }; > </script> > <%= toolbocks_date_select(:model, :column, {}, { :flat => true, > :flatCallback => ''javascript:dateChanged'' }) %> > > You can also checkout all the demos I use to test with here.. > > http://svn.toolbocks.com/plugins/datetime_toolbocks/app/views/datetime_toolbocks/_demos.rhtml > > Enjoy! > > Nathaniel. > > On 3/29/07, Conrad Taylor <conradwt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Hi Nathaniel, I was looking for option(s) to create an inline calendar > > using the datetime toolbooks? > > > > -Conrad > > > > On 3/29/07, Nathaniel Brown <nshb-wgYSSEAWXinQT0dZR+AlfA@public.gmane.org> wrote: > > > > > > Hey Conrad, > > > > > > You could have used > > > > > > http://svn.toolbocks.com/demos/datetime_toolbocks/ > > > > > > Instantly up and running app :) > > > > > > Dlo, that might work for you as well. As a working reference anyways. > > > That''s whats running on http://datetime.toolbocks.com > > > > > > Nathaniel. > > > > > > On 3/28/07, Conrad Taylor <conradwt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > Hi dlo, I was able to successfully install it. BTW, I was using Ruby > > > > 1.8.6, Rails 1.2.3, Engines 1.2, and Rake 0.7.2. It took me about 20 > > > > minutes to get a test application up and operational using the most > > > > current version of Datetime Toolbocks. > > > > > > > > -Conrad > > > > > > > > On 3/21/07, dlo <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > > > > > > > > > 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: > > > > > > > > > > <td> > > > > > Start Date: > > > > > <%= datebocks_field(''table_rate'', ''date_column'') %> > > > > > </td> > > > > > > > > > > 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 > > > > > > > > > > -- > > > > > Posted via http://www.ruby-forum.com/. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > 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 > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
The whole point of the plugin is to extend the date input so you can have phrases in the input field. If you want just a calendar, simply use the Calendar.setup method and pass it whatever options you want (flat, flatCallback, inputField). To disable the input is like cuting off the hands and legs of the plugin, and I don''t recommend doing such :P Nathaniel. On 3/29/07, Conrad Taylor <conradwt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hey Nathaniel, this is some very good work. Now, is it possible to to > disable the input field because on an new/edit view screen I would > like them to simply use the calendar to set/change the date? > > Thanks, > > -Conrad > > On 3/29/07, Nathaniel Brown <nshb-wgYSSEAWXinQT0dZR+AlfA@public.gmane.org> wrote: > > > > Hey Conrad, > > > > As I said, I haven''t done this before, so there is no "simple" way to > > do it yet with the library, but the library will provide full access > > to integrate it. The calendar_options param passes through all the > > options to the Calendar.setup initialization. > > > > http://www.dynarch.com/demos/jscalendar/simple-2.html > > > > So.. something like this would work.... > > > > > > ...... ok so axe all that. > > > > I just spent the morning hacking away at it :) And voila... v3.0.3 > > > > You can now do this.. > > > > <div style="float: right;" id="calendar-container"></div> > > <%= toolbocks_date_select :model, :column, {}, { :flat => > > ''calendar-container'' } %> > > > > or to have Datetime Toolbocks do everything for you and make it even > > simpler, try this.. > > > > <%= toolbocks_date_select(:model, :column, {}, { :flat => true }) %> > > > > or to do something like the example in the dynarch.com website above.. > > > > <!-- Use a callback for the flat calendar//--> > > <script type="text/javascript"> > > function dateChanged(calendar) { > > // Beware that this function is called even if the end-user only > > // changed the month/year. In order to determine if a date was > > // clicked you can use the dateClicked property of the calendar: > > if (calendar.dateClicked) { > > // OK, a date was clicked, redirect to /yyyy/mm/dd/index.php > > var y = calendar.date.getFullYear(); > > var m = calendar.date.getMonth(); // integer, 0..11 > > var d = calendar.date.getDate(); // integer, 1..31 > > > > var url = "/search/" + y + "/" + m + "/" + d; > > > > // redirect... > > // window.location = url; > > > > // announce a possible URL to go to > > alert(url); > > } > > }; > > </script> > > <%= toolbocks_date_select(:model, :column, {}, { :flat => true, > > :flatCallback => ''javascript:dateChanged'' }) %> > > > > You can also checkout all the demos I use to test with here.. > > > > http://svn.toolbocks.com/plugins/datetime_toolbocks/app/views/datetime_toolbocks/_demos.rhtml > > > > Enjoy! > > > > Nathaniel. > > > > On 3/29/07, Conrad Taylor <conradwt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > Hi Nathaniel, I was looking for option(s) to create an inline calendar > > > using the datetime toolbooks? > > > > > > -Conrad > > > > > > On 3/29/07, Nathaniel Brown <nshb-wgYSSEAWXinQT0dZR+AlfA@public.gmane.org> wrote: > > > > > > > > Hey Conrad, > > > > > > > > You could have used > > > > > > > > http://svn.toolbocks.com/demos/datetime_toolbocks/ > > > > > > > > Instantly up and running app :) > > > > > > > > Dlo, that might work for you as well. As a working reference anyways. > > > > That''s whats running on http://datetime.toolbocks.com > > > > > > > > Nathaniel. > > > > > > > > On 3/28/07, Conrad Taylor <conradwt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > > > Hi dlo, I was able to successfully install it. BTW, I was using Ruby > > > > > 1.8.6, Rails 1.2.3, Engines 1.2, and Rake 0.7.2. It took me about 20 > > > > > minutes to get a test application up and operational using the most > > > > > current version of Datetime Toolbocks. > > > > > > > > > > -Conrad > > > > > > > > > > On 3/21/07, dlo <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > > > > > > > > > > > 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: > > > > > > > > > > > > <td> > > > > > > Start Date: > > > > > > <%= datebocks_field(''table_rate'', ''date_column'') %> > > > > > > </td> > > > > > > > > > > > > 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 > > > > > > > > > > > > -- > > > > > > Posted via http://www.ruby-forum.com/. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > 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 > > > > > > > > > > >-- Nathaniel Steven Henry Brown Toll Free: 1-877-446-4647 Vancouver: 604-724-6624 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
The whole point of the plugin is to extend the date input so you can have phrases in the input field. If you want just a calendar, simply use the Calendar.setup method and pass it whatever options you want (flat, flatCallback, inputField). To disable the input is like cuting off the hands and legs of the plugin, and I don''t recommend doing such :P Nathaniel. On 3/29/07, Conrad Taylor <conradwt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hey Nathaniel, this is some very good work. Now, is it possible to to > disable the input field because on an new/edit view screen I would > like them to simply use the calendar to set/change the date? > > Thanks, > > -Conrad > > On 3/29/07, Nathaniel Brown <nshb-wgYSSEAWXinQT0dZR+AlfA@public.gmane.org> wrote: > > > > Hey Conrad, > > > > As I said, I haven''t done this before, so there is no "simple" way to > > do it yet with the library, but the library will provide full access > > to integrate it. The calendar_options param passes through all the > > options to the Calendar.setup initialization. > > > > http://www.dynarch.com/demos/jscalendar/simple-2.html > > > > So.. something like this would work.... > > > > > > ...... ok so axe all that. > > > > I just spent the morning hacking away at it :) And voila... v3.0.3 > > > > You can now do this.. > > > > <div style="float: right;" id="calendar-container"></div> > > <%= toolbocks_date_select :model, :column, {}, { :flat => > > ''calendar-container'' } %> > > > > or to have Datetime Toolbocks do everything for you and make it even > > simpler, try this.. > > > > <%= toolbocks_date_select(:model, :column, {}, { :flat => true }) %> > > > > or to do something like the example in the dynarch.com website above.. > > > > <!-- Use a callback for the flat calendar//--> > > <script type="text/javascript"> > > function dateChanged(calendar) { > > // Beware that this function is called even if the end-user only > > // changed the month/year. In order to determine if a date was > > // clicked you can use the dateClicked property of the calendar: > > if (calendar.dateClicked) { > > // OK, a date was clicked, redirect to /yyyy/mm/dd/index.php > > var y = calendar.date.getFullYear(); > > var m = calendar.date.getMonth(); // integer, 0..11 > > var d = calendar.date.getDate(); // integer, 1..31 > > > > var url = "/search/" + y + "/" + m + "/" + d; > > > > // redirect... > > // window.location = url; > > > > // announce a possible URL to go to > > alert(url); > > } > > }; > > </script> > > <%= toolbocks_date_select(:model, :column, {}, { :flat => true, > > :flatCallback => ''javascript:dateChanged'' }) %> > > > > You can also checkout all the demos I use to test with here.. > > > > http://svn.toolbocks.com/plugins/datetime_toolbocks/app/views/datetime_toolbocks/_demos.rhtml > > > > Enjoy! > > > > Nathaniel. > > > > On 3/29/07, Conrad Taylor <conradwt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > Hi Nathaniel, I was looking for option(s) to create an inline calendar > > > using the datetime toolbooks? > > > > > > -Conrad > > > > > > On 3/29/07, Nathaniel Brown <nshb-wgYSSEAWXinQT0dZR+AlfA@public.gmane.org> wrote: > > > > > > > > Hey Conrad, > > > > > > > > You could have used > > > > > > > > http://svn.toolbocks.com/demos/datetime_toolbocks/ > > > > > > > > Instantly up and running app :) > > > > > > > > Dlo, that might work for you as well. As a working reference anyways. > > > > That''s whats running on http://datetime.toolbocks.com > > > > > > > > Nathaniel. > > > > > > > > On 3/28/07, Conrad Taylor <conradwt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > > > Hi dlo, I was able to successfully install it. BTW, I was using Ruby > > > > > 1.8.6, Rails 1.2.3, Engines 1.2, and Rake 0.7.2. It took me about 20 > > > > > minutes to get a test application up and operational using the most > > > > > current version of Datetime Toolbocks. > > > > > > > > > > -Conrad > > > > > > > > > > On 3/21/07, dlo <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > > > > > > > > > > > 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: > > > > > > > > > > > > <td> > > > > > > Start Date: > > > > > > <%= datebocks_field(''table_rate'', ''date_column'') %> > > > > > > </td> > > > > > > > > > > > > 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 > > > > > > > > > > > > -- > > > > > > Posted via http://www.ruby-forum.com/. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > 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 > > > > > > > > > > >-- Nathaniel Steven Henry Brown Toll Free: 1-877-446-4647 Vancouver: 604-724-6624 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
ehret.dominik-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org
2007-Mar-31 22:51 UTC
Re: Need Help With Datebock plugin
hello, i''m having some strange problem with this new plugin - i just can''t get it to work with rails 1.2.3 & engine 1.2 =( "undefined method `toolbocks_date_select'' for #<#<Class:0x395ac48>: 0x395ac0c>" although the plugin seems to be loaded correctly: loading plugin from script/../config/../vendor/plugins/ datetime_toolbocks with engine additions Plugin ''datetime_toolbocks'': starting load. Attempting to copy plugin plugin asset files from ''script/../config/../ vendor/plugins/datetime_toolbocks/assets'' to ''script/../config/../ public/plugin_assets'' Plugin ''datetime_toolbocks'': loaded. thanks in advance, dominik --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Did you happen to modify the environment.rb file to add the config.plugins ? There is a demo app which you can try out just to make sure whatever environment you are in will work properly. http://svn.toolbocks.com/demos/datetime_toolbocks/ Nathaniel. On 3/31/07, ehret.dominik-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org <ehret.dominik-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> > hello, > i''m having some strange problem with this new plugin - i just can''t > get it to work with rails 1.2.3 & engine 1.2 =( > "undefined method `toolbocks_date_select'' for #<#<Class:0x395ac48>: > 0x395ac0c>" > > although the plugin seems to be loaded correctly: > loading plugin from script/../config/../vendor/plugins/ > datetime_toolbocks with engine additions > Plugin ''datetime_toolbocks'': starting load. > Attempting to copy plugin plugin asset files from ''script/../config/../ > vendor/plugins/datetime_toolbocks/assets'' to ''script/../config/../ > public/plugin_assets'' > Plugin ''datetime_toolbocks'': loaded. > > thanks in advance, > > dominik > > > > > >-- Nathaniel Steven Henry Brown Toll Free: 1-877-446-4647 Vancouver: 604-724-6624 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
ehret.dominik-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org
2007-Apr-01 07:16 UTC
Re: Need Help With Datebock plugin
yes, i''ve added config.plugins in the initializer block as mentioned in the readme file. Rails::Initializer.run do |config| config.plugins = ["engines", "*"] end your demo app is working correctly. any idea why it isn''t working in my app? On 1 Apr., 02:43, "Nathaniel Brown" <n...-wgYSSEAWXinQT0dZR+AlfA@public.gmane.org> wrote:> Did you happen to modify the environment.rb file to add the config.plugins ? > > There is a demo app which you can try out just to make sure whatever > environment you are in will work properly. > > http://svn.toolbocks.com/demos/datetime_toolbocks/ > > Nathaniel. > > On 3/31/07, ehret.domi...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org <ehret.domi...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > > > > > > > hello, > > i''m having some strange problem with this new plugin - i just can''t > > get it to work with rails 1.2.3 & engine 1.2 =( > > "undefined method `toolbocks_date_select'' for #<#<Class:0x395ac48>: > > 0x395ac0c>" > > > although the plugin seems to be loaded correctly: > > loading plugin from script/../config/../vendor/plugins/ > > datetime_toolbocks with engine additions > > Plugin ''datetime_toolbocks'': starting load. > > Attempting to copy plugin plugin asset files from ''script/../config/../ > > vendor/plugins/datetime_toolbocks/assets'' to ''script/../config/../ > > public/plugin_assets'' > > Plugin ''datetime_toolbocks'': loaded. > > > thanks in advance, > > > dominik > > -- > Nathaniel Steven Henry Brown > > Toll Free: 1-877-446-4647 > Vancouver: 604-724-6624--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
ehret.dominik-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org
2007-Apr-01 07:21 UTC
Re: Need Help With Datebock plugin
plugin seems to be loaded, since i can open localhost/ datetime_toolbocks, but it can''t find the helper method. strange =( NoMethodError in Datetime_toolbocks#index Showing vendor/plugins/datetime_toolbocks/app/views/datetime_toolbocks/ index.rhtml where line #11 raised: undefined method `toolbocks_date_select'' for #<#<Class:0x3cfdc44>: 0x3cfdc1c> On 1 Apr., 02:43, "Nathaniel Brown" <n...-wgYSSEAWXinQT0dZR+AlfA@public.gmane.org> wrote:> Did you happen to modify the environment.rb file to add the config.plugins ? > > There is a demo app which you can try out just to make sure whatever > environment you are in will work properly. > > http://svn.toolbocks.com/demos/datetime_toolbocks/ > > Nathaniel. > > On 3/31/07, ehret.domi...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org <ehret.domi...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > > > > > > > hello, > > i''m having some strange problem with this new plugin - i just can''t > > get it to work with rails 1.2.3 & engine 1.2 =( > > "undefined method `toolbocks_date_select'' for #<#<Class:0x395ac48>: > > 0x395ac0c>" > > > although the plugin seems to be loaded correctly: > > loading plugin from script/../config/../vendor/plugins/ > > datetime_toolbocks with engine additions > > Plugin ''datetime_toolbocks'': starting load. > > Attempting to copy plugin plugin asset files from ''script/../config/../ > > vendor/plugins/datetime_toolbocks/assets'' to ''script/../config/../ > > public/plugin_assets'' > > Plugin ''datetime_toolbocks'': loaded. > > > thanks in advance, > > > dominik > > -- > Nathaniel Steven Henry Brown > > Toll Free: 1-877-446-4647 > Vancouver: 604-724-6624--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
ehret.dominik-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org
2007-Apr-01 11:57 UTC
Re: Need Help With Datebock plugin
just found the problem. forgot to remove the "include DatebocksEngine" in my application helper. now it''s running as it''s supposed to be - thanks for this great plugin =) On 1 Apr., 09:21, "ehret.domi...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org" <ehret.domi...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> plugin seems to be loaded, since i can open localhost/ > datetime_toolbocks, but it can''t find the helper method. strange =( > > NoMethodError in Datetime_toolbocks#index > > Showing vendor/plugins/datetime_toolbocks/app/views/datetime_toolbocks/ > index.rhtml where line #11 raised: > > undefined method `toolbocks_date_select'' for #<#<Class:0x3cfdc44>: > 0x3cfdc1c> > > On 1 Apr., 02:43, "Nathaniel Brown" <n...-wgYSSEAWXinQT0dZR+AlfA@public.gmane.org> wrote: > > > Did you happen to modify the environment.rb file to add the config.plugins ? > > > There is a demo app which you can try out just to make sure whatever > > environment you are in will work properly. > > >http://svn.toolbocks.com/demos/datetime_toolbocks/ > > > Nathaniel. > > > On 3/31/07, ehret.domi...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org <ehret.domi...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > > > > hello, > > > i''m having some strange problem with this new plugin - i just can''t > > > get it to work with rails 1.2.3 & engine 1.2 =( > > > "undefined method `toolbocks_date_select'' for #<#<Class:0x395ac48>: > > > 0x395ac0c>" > > > > although the plugin seems to be loaded correctly: > > > loading plugin from script/../config/../vendor/plugins/ > > > datetime_toolbocks with engine additions > > > Plugin ''datetime_toolbocks'': starting load. > > > Attempting to copy plugin plugin asset files from ''script/../config/../ > > > vendor/plugins/datetime_toolbocks/assets'' to ''script/../config/../ > > > public/plugin_assets'' > > > Plugin ''datetime_toolbocks'': loaded. > > > > thanks in advance, > > > > dominik > > > -- > > Nathaniel Steven Henry Brown > > > Toll Free: 1-877-446-4647 > > Vancouver: 604-724-6624--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---