Adding the following condition before line #26 solves this problem, although I'm not sure if this doesn't cause any unwanted side effects...
<% if active_scaffold_config.actions.include? :create %> -Nico- On Jan 7, 4:32 pm, EricTheGreen <[email protected]> wrote: > Hi Mike: > > AS: standard "git clone..." from the AS repository, per the > installation instructions, looks like 1.2RC1 from the changelog. > Rails: 2.2.2 > > HTH, > > -E- > > On Jan 7, 9:10 am, "mr.gaffo" <[email protected]> wrote: > > > Eric, what version of AS are you using? > > What version of Rails? > > > I know what the issue is but I thought it was fixed. > > > -Mike > > > On Jan 6, 3:48 pm, EricTheGreen <[email protected]> wrote: > > > > Fixed colon and re-tried; same error. > > > > Should have been posting the trace along with this; here it is: > > > > RuntimeError in SwitchMessages#index > > > > Showing vendor/plugins/active_scaffold/frontends/default/views/ > > > list.rhtml where line #26 raised: > > > > Create is not enabled. Please enable it or remove any references in > > > your configuration (e.g. config.create.columns = [...]). > > > > Extracted source (around line #26): > > > > 23: + '</a>' > > > 24: + '</p>'; > > > 25: </script> > > > 26: <% if active_scaffold_config.create.show_on_list %> > > > 27: <script type="text/javascript"> > > > 28: <% link = action_link_id('new', nil) %> > > > 29: $$("#<%= link %>").first().action_link.open() > > > > On Jan 6, 12:55 pm, "G. Sobrinho" <[email protected]> wrote: > > > > > See the ":" before "delete" > > > > > On 06-01-2009 15:26, EricTheGreen wrote: > > > > > > Added whitespace between symbols and re-tried; same error as before. > > > > > > -E- > > > > > > On Jan 6, 11:14 am, "G. Sobrinho"<[email protected]> wrote: > > > > > >> Replace with: > > > > > >> cfg.actions.exclude :create, :update, :delete > > > > > >> On 06-01-2009 15:03, EricTheGreen wrote: > > > > > >>> cfg.actions.exclude :create,:update,delete > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
