I had this exact problem, and I have managed to fix it (I think).

This page (http://wiki.activescaffold.com/wiki/published/
CalendarDateSelectBridge) tells you to install the CalendarDateSelect
Rails plugin. Don't do this, and remove it if you have already done
so.

Instead, follow the instructions on the CalendarDateSelect page
(http://code.google.com/p/calendardateselect/) and install the Gem.

When you restart your Rails app, ActiveScaffold will notice the gem is
there and things will work fine.

I suspect it's just a matter of the plugin being a little out of date.


Simon


On Jan 28, 11:45 pm, Tim Uckun <[email protected]> wrote:
> > AS has no calendar_date_select, it has a bridge to use calendar_date_select
> > when is installed.
>
> Unfortunately this doesn't seem to work.
>
> I installed the calender_date_select and now I get an error when I try to
> load the active_scaffold includes. Here is the error.
>
> I am using the rails-2.2 branch of AS (the edge does not load with rails
> 2.2) and the latest version of calender select
>
> Here is the line that gives the culprit
>
>  <%= calendar_date_select_includes params[:style] %>
>  <%= active_scaffold_includes %>
>
> Here is the error
>
> undefined local variable or method `calendar_date_select_javascripts'
> for #<ActionView::Base:0xb5dea048>
>
> Trace...
>
> endor/plugins/active_scaffold/lib/bridges/calendar_date_select/lib/as_cds_b 
> ridge.rb:47:in
> `active_scaffold_javascripts'
> vendor/plugins/active_scaffold/lib/active_scaffold/helpers/view_helpers.rb: 
> 102:in
> `active_scaffold_includes'
> app/views/layouts/application.html.erb:28
>
> The offending file method
>
> # Provides stylesheets to include with +stylesheet_link_tag+
>       def active_scaffold_javascripts_with_calendar_date_select(frontend
> = :default)
>         active_scaffold_javascripts_without_calendar_date_select.to_a
> << calendar_date_select_javascripts
>       end
>       alias_method_chain :active_scaffold_javascripts, :calendar_date_select
>
> Obviously the method "calendar_date_select_javascripts does not exist
> anywhere (and neither does calendar_date_select_stylesheets)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

  • Us... Tim Uckun
    • ... Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
      • ... Tim Uckun
        • ... Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
        • ... Simon Coles

Reply via email to