My favorites | Sign in
Project Logo
                
Details: Show all Hide all

Last 30 days

  • Dec 14, 2009
    issue 12 (plugin not working with ruby 1.8.7 and rails 2.3.4) commented on by gzou2000   -   @paulrhanson316 I tried reverting to version 2.3.2 of rails and 1.8.7 of ruby and did not see any problems with inital (or pre-selected) dates. This is how i use pre-selected dates : datetime_select :controller, "field", :default => Time.mktime(2009,12,14), :ifFormat => "%d-%m-%y" could you post your code that is not working and the html that is outputted ?
    @paulrhanson316 I tried reverting to version 2.3.2 of rails and 1.8.7 of ruby and did not see any problems with inital (or pre-selected) dates. This is how i use pre-selected dates : datetime_select :controller, "field", :default => Time.mktime(2009,12,14), :ifFormat => "%d-%m-%y" could you post your code that is not working and the html that is outputted ?
  • Dec 14, 2009
    issue 12 (plugin not working with ruby 1.8.7 and rails 2.3.4) commented on by paulrhanson316   -   Dear gzou2000, Your calendar.rb fixed the wrong number of arguments (4 for 3) error and I was quite happy until I realized that when the form first comes up, the initial values are not displayed. The text box is blank. When I select a date, it adds the date to the text box no problem. I'm using Ruby 1.8.6 and Rails 2.3.2. Thanks, Paul
    Dear gzou2000, Your calendar.rb fixed the wrong number of arguments (4 for 3) error and I was quite happy until I realized that when the form first comes up, the initial values are not displayed. The text box is blank. When I select a date, it adds the date to the text box no problem. I'm using Ruby 1.8.6 and Rails 2.3.2. Thanks, Paul

Earlier this year

  • Nov 23, 2009
    issue 12 (plugin not working with ruby 1.8.7 and rails 2.3.4) commented on by gzou2000   -   I discovered the same problem, and after some mucking in the code, I was able to fix it with a quick hack. The file you need to modify is in vendor/plugins/activecalendar/lib/assay_depot. I've included my version of the file as an attachment. The main problem is in the DateHelper module. InstanceTag.new used to take 5 arguments, but now it only takes 4 and the code of activecalendar hasn't been updated for this change. I had to also "quick hack" the functions depot_date_select and depot_datetime_select since the preselected date wasn't working. I also commented out some code that was, by the looks of it, supposed to generate validation errors, but it uses a variable that isn't defined anywhere (at least I couldn't find it anywhere).
    I discovered the same problem, and after some mucking in the code, I was able to fix it with a quick hack. The file you need to modify is in vendor/plugins/activecalendar/lib/assay_depot. I've included my version of the file as an attachment. The main problem is in the DateHelper module. InstanceTag.new used to take 5 arguments, but now it only takes 4 and the code of activecalendar hasn't been updated for this change. I had to also "quick hack" the functions depot_date_select and depot_datetime_select since the preselected date wasn't working. I also commented out some code that was, by the looks of it, supposed to generate validation errors, but it uses a variable that isn't defined anywhere (at least I couldn't find it anywhere).
  • Oct 06, 2009
    issue 12 (plugin not working with ruby 1.8.7 and rails 2.3.4) reported by san2821   -   What steps will reproduce the problem? 1. use ruby 1.8.7 2. use edge rails 3. you should have datetime_select :used, :birtdate What is the expected output? What do you see instead? It should show activecalendar attached to birthdate textbox What version of the product are you using? On what operating system? ubuntu 9.0.1 Please provide any additional information below. latest Error trace ActionView::TemplateError (wrong number of arguments (4 for 3))
    What steps will reproduce the problem? 1. use ruby 1.8.7 2. use edge rails 3. you should have datetime_select :used, :birtdate What is the expected output? What do you see instead? It should show activecalendar attached to birthdate textbox What version of the product are you using? On what operating system? ubuntu 9.0.1 Please provide any additional information below. latest Error trace ActionView::TemplateError (wrong number of arguments (4 for 3))
  • Jan 20, 2009
    issue 9 (Active Scafold One to Many Form problem) commented on by juracy   -   I had same problem and I've realized that the bug was in active_scaffold. It has a bug in subform that create several controls with the same ID. I made a quick'n'dirty fix for it and I'm sending it as attachment (*pay attention it's a fix for ACTIVE SCAFFOLD*). I'll try to search in active_scaffold bug database for it...
    I had same problem and I've realized that the bug was in active_scaffold. It has a bug in subform that create several controls with the same ID. I made a quick'n'dirty fix for it and I'm sending it as attachment (*pay attention it's a fix for ACTIVE SCAFFOLD*). I'll try to search in active_scaffold bug database for it...

Older

  • Oct 03, 2008
    issue 11 (Support for select_date and select_datetime) reported by yuri.leikind   -   ActiveCalendar overrides date_select and datetime_select helpers of Rails, but in addition to these object style helpers there are also simpler select_date and select_datetime which do not take advantage of Dynarch when the plugin is installed. A visitor of the Assay Depot blog posted about a patch to redefine select_date and select_datetime - http://blog.assaydepot.com/2007/8/11/activecalendar-update-validators-and-added- flexibility, see the first post by Peer Allan (Peter perhaps), but apparently this was ignored. Is it possible to add support for select_date and select_datetime?
    ActiveCalendar overrides date_select and datetime_select helpers of Rails, but in addition to these object style helpers there are also simpler select_date and select_datetime which do not take advantage of Dynarch when the plugin is installed. A visitor of the Assay Depot blog posted about a patch to redefine select_date and select_datetime - http://blog.assaydepot.com/2007/8/11/activecalendar-update-validators-and-added- flexibility, see the first post by Peer Allan (Peter perhaps), but apparently this was ignored. Is it possible to add support for select_date and select_datetime?
  • Sep 10, 2008
    issue 10 (Rails2.1.1 ActionView::Helpers::FormBuilder.date_select and ...) reported by tnedlacer   -   @@ -112,14 +112,14 @@ end module DateHelper - def date_select(object_name, method, options = {}) + def date_select(object_name, method, options = {}, html_options = {}) name = options[:name].nil? ? "#{object_name}[#{method}]" : options[:name] id = options[:id].nil? ? "#{object_name}_#{method}" : options[:id] options = options.merge( { :name => name, :id => id, :method => method, :object_name => object_name }) InstanceTag.new(object_name, method, self, nil, options.delete(:object)).to_date_select_tag(options) end - def datetime_select(object_name, method, options = {}) + def datetime_select(object_name, method, options = {}, html_options = {}) name = options[:name].nil? ? "#{object_name}[#{method}]" : options[:name] id = options[:id].nil? ? "#{object_name}_#{method}" : options[:id] options = options.merge( { :name => name, :id => id, :method => method, :object_name => object_name })
    @@ -112,14 +112,14 @@ end module DateHelper - def date_select(object_name, method, options = {}) + def date_select(object_name, method, options = {}, html_options = {}) name = options[:name].nil? ? "#{object_name}[#{method}]" : options[:name] id = options[:id].nil? ? "#{object_name}_#{method}" : options[:id] options = options.merge( { :name => name, :id => id, :method => method, :object_name => object_name }) InstanceTag.new(object_name, method, self, nil, options.delete(:object)).to_date_select_tag(options) end - def datetime_select(object_name, method, options = {}) + def datetime_select(object_name, method, options = {}, html_options = {}) name = options[:name].nil? ? "#{object_name}[#{method}]" : options[:name] id = options[:id].nil? ? "#{object_name}_#{method}" : options[:id] options = options.merge( { :name => name, :id => id, :method => method, :object_name => object_name })
  • Aug 08, 2008
    issue 9 (Active Scafold One to Many Form problem) reported by eddie_he...@yahoo.co.uk   -   What steps will reproduce the problem? 1. Use active scaffold to generate a one to many form association. In my case parent is 'project' with many 'tasks' (with a to_do date field) child form. 2. Open a project form with many sub tasks forms. The active calendar only opens on the first child. What is the expected output? What do you see instead? Expect to see active calendar on click on all child sub forms but no error and no calendar pops up What version of the product are you using? On what operating system? version 1.0- client ops sys windows Xp - server Linux debian. Please provide any additional information below. Thanks - activecalendar has been great to use so far.
    What steps will reproduce the problem? 1. Use active scaffold to generate a one to many form association. In my case parent is 'project' with many 'tasks' (with a to_do date field) child form. 2. Open a project form with many sub tasks forms. The active calendar only opens on the first child. What is the expected output? What do you see instead? Expect to see active calendar on click on all child sub forms but no error and no calendar pops up What version of the product are you using? On what operating system? version 1.0- client ops sys windows Xp - server Linux debian. Please provide any additional information below. Thanks - activecalendar has been great to use so far.
  • Jul 25, 2008
    issue 8 (german language does not work) reported by eselfink   -   when i load the english language (or spain) the calendar ist displayed. with german there is only the title and footer: no day is shown => all is undefined. I overwrote the german version with the english one and modified some values: all went fine..
    when i load the english language (or spain) the calendar ist displayed. with german there is only the title and footer: no day is shown => all is undefined. I overwrote the german version with the english one and modified some values: all went fine..
 
Hosted by Google Code