I'm quite young in programming so please forgive my ignorance if I
missed something here.

I'm pondering to get rid of AS due to lots of issues with constraints,
and limitations.  I know that alof of work has gone into this but the
thought process behind it doesnt add up.  Some things are possible for
only certain CRUD methods when you expect them to be available for all
CRUD methods, espcially the labelling/descriptions, and constraints.

I have 25 columns, so I have to make abbreviations for the labels I
set the following e.g.

config.columns[:attack].label = "AT" (works in LIST)
config.columns[:attack].description = "Attack" (UPDATE / CREATE)

but this doesnt work for a standard SHOW method as it defaults to the
label, so description is not being used in the show method.  I prefer
not to have to make 100+ versions of the rhtml files as overrides
needed for my 100 entities, hence pref to get AS to do this

I've tried
    path = ActionController::Routing::Routes.recognize_path request.env
['PATH_INFO']
    :current_action = path[:action]

I can then call this in my controller to redefine labels accordingly
e.g.
if :current_action =='index'
   config.columns[:attack].label = "AT"
else
  config.columns[:attack].label = "Attack"
end

but the AJAX call updates after the 1 time per page load with the
correct labels, hence the labels are out ot sync with the list and
show mode.

any work arounds? what can I do - I just want to get a protoype
running to see how things work, test it and move on! :-)

I can work around it but could we not have somthing to work like - so
we have more control between our CRUD operations.
e.g.
config.show.columns[].description
config.show.columns[].label

or
config.update.columns[].description
config.update.columns[].label


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to