My name is Volker Hochstein and I m a software engineer from germany.

Currently, my blog is focused on rails plugin activescaffold and how it may be used with rails 3.
All the examples are based on a rails 3 compatible fork of activescaffold: http://github.com/vhochstein/active_scaffold


31 Comments (+add yours?)

  1. Stefan Sachse
    Feb 22, 2011 @ 16:35:17

    Hi Volker,
    thanks for your nice work on porting AS to rails 3. Right now I am trying to port my app from Rails 2.3 to Rails 3 using a lot of AS. (ruby 1.9.2)
    I came across the problem that Rails 3 works differently with helpers. By standard
    helper :all is included.
    That leads to the problem that field overwrites in AS with the same name in different models just grab the first helper that fits 😦
    a clear_helpers in the controller helps over this, but AS documents a change for
    in the way like #{class_name}_#{column_name}_column

    I could not make this work with your version. Did you already tackle this problem ?




    • vhochstein
      Feb 22, 2011 @ 17:41:54

      Hi, I did not follow that pass of activescaffold master, so stay with the old convention #{column_name}_column


      • Stefan Sachse
        Feb 22, 2011 @ 17:45:28

        Thank you,
        how do you solve the problem with the helper :all ?

      • vhochstein
        Feb 22, 2011 @ 20:03:19

        Well rails guys decided to make the helper space global, therefore you have to make sure that you only define a method once.
        if you ve got a override for a name attribute and name attribute exists in more than one model you have to select record case … accordingly in your method,
        same if you would like to have different outputs per controller select controller_name case…

  2. Golda
    Mar 18, 2011 @ 13:00:20

    Hello – thanks for all the work on ActiveScaffold!

    I am trying to upgrade a Rails 2.0 site that made extensive use of the :nested action on column entries, like so:

    config.columns.add :pattern_count
    config.columns[:pattern_count].label = “Patterns1”
    config.columns[:pattern_count].set_link(‘nested’, :parameters => {:associations => :host_patterns })

    I’m afraid I don’t understand, how to convert these to a new syntax to work with the new ActiveScaffold module. I am getting “The action ‘nested’ could not be found for HostsController”.

    I tried also adding a static nested link via


    elsewhere, but it is not nesting in the page, it just appears to link to another page.

    Thanks for any clue!



  3. Russell Balest
    May 11, 2011 @ 21:40:08

    I’m very thankful for your existence Volker!


  4. Russell Balest
    May 21, 2011 @ 17:23:41

    Hi Volker,

    I’m wondering if you can give any recommendations for integrating file columns into active_scaffold_vho, if you have any experience with file columns or related plugins – paperclip, attachment_fu, etc. The point being to identify an approach for file columns that will play well with as_vho.

    Thanks again!


    • vhochstein
      May 21, 2011 @ 18:26:00

      Should work out of the box.

      eg. paperclip, just define has_attached_file :xyz in your model and you are done.


  5. Venkat
    Jul 28, 2011 @ 15:08:31

    Hello Volker,

    Thanks a lot for your AS work. We have resumed using AS after seeing your work here.

    Quick question on the inline mode for links:

    From whatever I had tried, setting config.create.link.inline = false simply doesn’t work. Looking briefly at JS code, there is no reference to it.

    Could you throw some light on this?



    • vhochstein
      Jul 28, 2011 @ 19:37:45

      Well, let me ask you a simple question. What do you expect to happen if you set inline=false ?


  6. Venkat
    Jul 29, 2011 @ 14:59:42

    Thanks for the response.

    inline => false should go to a URL (as in windows.location) replacing the current list view. If I add a table level custom action like this:

    config.action_links.add ‘create_task_entry’, :label => ‘Create Task Entry’,
    :page => true, :action => ‘new’, :parameters => {:type => :task}

    It works fine. But either changing the default behaviour of new / edit it doesn’t work as expected. This is also the case for adding record level custom actions. To give you some more info, here is the AS javascript code of one of the older versions of AS which was taking care of this inline thing.

    open_action: function() {
    if (this.position) this.disable();

    if (this.page_link) {
    window.location = this.url;
    } else {
    if (this.loading_indicator) this.loading_indicator.style.visibility = ‘visible’;
    new Ajax.Request(this.url, {
    asynchronous: true,
    evalScripts: true,

    Hope this helps.

    Warm Regards,


    • vhochstein
      Aug 01, 2011 @ 17:07:17

      Well, if it is not working I would say you should open an issue at github


  7. Mario
    Aug 01, 2011 @ 22:45:00

    Hello, Volker

    First I want to say excellent work porting AS to Rails 3.
    I’m currently running the old version of AS on Rails 2 and have the active_scaffold_list_filters plugin installed. Does AS for Rails 3 works with this plugin? I would like to have the filter functionality on AS for Rails 3, or maybe I’m missing how to do a filter under your app? I’m very new to rails and is easy for me to miss some obvious and basic things 😛
    Thanks a lot for your help!

    – -Mario


    • vhochstein
      Aug 02, 2011 @ 16:43:23

      Well, if that active_scaffold_list_filters plugin supports rails 3 it should work. However, I doubt it will work. 😦
      Activescaffold itself is not supporting some kind of filter feature. Fieldsearch is your best candidate, in core activescaffold I would assume


  8. Dhritiman
    Nov 28, 2011 @ 05:45:10

    Hi Volker – I have been trying to upgrade AS to Rails-3.0 and having a really tough time with the one step installer. I am wondering if things are broken with the recent changes to rails 3.1

    I am working with rails 3.0.7 on MacOS.

    First problem I faced with it was that it requires ‘rake 0.8.7’, otherwise it fails with the problem listed in

    Then it complains about
    active_scaffold_vho depends on
    railties (~> 3.1.0)

    rails (= 3.0.7) depends on
    railties (3.0.7)

    Then I tried going through the wiki instructions of downloading these as plugins. I downloaded all 3 versions and they downloaded fine

    rails plugin install git://github.com/vhochstein/render_component.git
    rails plugin install git://github.com/rails/verification.git
    rails plugin install git://github.com/vhochstein/active_scaffold.git -r ‘rails-3.0’

    That seemed to have worked…..

    One question I had: how do I use jQuery in noConflict mode? i.e. if I add this in my layout, how would I configure AS to work properly?




    • vhochstein
      Nov 28, 2011 @ 16:21:47

      Yes, you are right. active_scaffold_one_step install seems to be broken.

      Just use my Blog entry how to setup Activescaffold with rails 3.0. There you should find instructions to setup a rails 3.0 application with activescaffold as a gem

      Do you want to use both? Prototype and jquery?


  9. Dhritiman
    Nov 28, 2011 @ 05:47:50

    BTW – I would probably prefer to work with gems as opposed to plugins, but that’s somewhat secondary to the jQuery noConflict issue



  10. Dhritiman
    Nov 28, 2011 @ 16:53:57

    I currently happen to have both prototype and jquery used in the app (which is why I need to use the noConflict stuff) and have been using AS with prototype, but I was hoping to migrate to just using jQuery.


    • vhochstein
      Nov 28, 2011 @ 19:35:30

      Ok, I assume that you will use prototype with activescaffold.
      Then it should work out of the box. You integrate your version of jquery and call noConflict.


  11. Dennis Bulgatz
    Apr 09, 2012 @ 22:29:57

    Hello. I am working on a site upgrade from Rails 2.3.14 to 3.0. I have the site up and going and more or less working. One thing I have not been able to figure out- sometimes the rested lists are not being filtered.

    is there anything required in the “other” controller?

    Looking at the log
    Started GET “/esd1-cache/virtual_attribute_values?assoc_id=1856905363EXPL__000082188701&association=virtual_attribute_values&eid=items_1856905363EXPL__000082188701_virtual_attribute_values&parent_scaffold=items&adapter=_list_inline_adapter” for at Mon Apr 09 17:19:23 -0500 2012
    Processing by VirtualAttributeValuesController#index as JS
    Parameters: {“association”=>”virtual_attribute_values”, “parent_scaffold”=>”items”, “assoc_id”=>”1856905363EXPL__000082188701”, “eid”=>”items_1856905363EXPL__000082188701_virtual_attribute_values”, “adapter”=>”_list_inline_adapter”}

    class ItemsController “Src Items”)
    config.nested.add_link(:target_xref_linked_items, :label => “Tgt Items”)
    config.nested.add_link(:source_diagram_symbols, :label => “Src Diag”)
    config.nested.add_link(:target_diagram_symbols, :label => “Tgt Dia”)
    config.nested.add_link(:virtual_attribute_values, :label => “VAs”)



    • vhochstein
      Apr 10, 2012 @ 05:13:26

      should be config.nested.add_link :target_xref_linked_items, {:label => “Tgt Items”}
      Hope that helps.


  12. jaylenom
    May 17, 2012 @ 14:11:47

    Hi Vocker U r doing very nice work


  13. oliveraden8
    May 31, 2012 @ 21:36:53

    Very useful information please configure it


  14. james
    Nov 28, 2012 @ 23:05:43

    Hi Volker. First of all, thank you for your work!
    Few years ago I used ActiveScaffold in couple of my RoR 2.x apps. One year ago (or a bit longer than that) I needed to create a new app and decided to use RoR 3.1 with your active_scaffold_vho. I made my application and it actually works just fine, except of one strange thing. In my controller, I use following line “config.columns[ :posting ].form_ui = :text_editor” which gives me TinyMCE editor for editing field posting. I use simple theme which gives me just a few basic options for editing but it’s all I need. When running that app on my home computer everything works fine. However, when I run it on my production server, every time I edit field posting either ActiveScaffold either TinyMCE (and I suspect it’ TinyMCE’s problem but I can’t be sure about that) deletes every whitespace after comma. So, in ie., if I have a text which says something like
    “I have two apples, three oranges, five bananas” after saving record everything is OK, but when I try to edit that record after that I will have following text in my editor “I have two apples,three oranges,five bananas”. And it only happens on my server, not on my development machine (both server and development machine uses same version of AS). If I manually return missing whitespaces in my text, after saving it text looks OK, but next time when I try to edit record text in editor will show up without whitespaces. Do you have any idea what am I doing wrong?


    • vhochstein
      Nov 30, 2012 @ 16:37:21

      If you open a record for editing, can you please take a look into the response object for that specific request (using Firebug or similar tools)
      Would be interesting to know if these spaces are already missing when it arrives from the server or if they are removed when tinymceeditor takes control.


      • james
        Nov 30, 2012 @ 21:12:15

        Well, using firebug on my local computer, I get text which is OK, i.e. “…interes za stručni razvoj, kao i prilično izvjesne…” (like in database). Looking response from real web server, I get following “…interes za stručni razvoj,kao i prilično izvjesne…”. However, I find on more strange thing – all code I receive from server is with stripped spaces (except when there is only one space character between two words) is only and newlines.
        So, while on my dev. machine receive this as response:


        on production web server I receive:

        That probably means it’ somehow connected with deployment environment; while on my dev. computer I use WEBrick, on production server I use phusion passenger. There must be some option on passenger… If you have any idea – please tell, and if you don’t – no problem, I know now where to look. Thanks a lot.

      • james
        Nov 30, 2012 @ 21:19:23

        Ooops… Sorry, I posted some html not even remotely thinking it will be skipped. Anyway, html code on my dev. machine is formatted nicely with newlines, spaces and tabs where they are in source code, while on my production comp. all that is skipped, so instead of something like this (noticed that I intentionally skipped greater than and less then characters):
        ol class=”form”
        li class=”form-element ” data-as_load=”form-element”
        label for=”record_title_4″Naslov/label

        I get this:
        ol class=”form” li class=”form-element “data-as_load=”form-element”dl dt label for=”record_title_4″Naslov/label/dt

  15. Andrés Zamora
    Apr 09, 2013 @ 21:12:56

    Fantastic Job!!


  16. arpind
    Sep 12, 2013 @ 17:18:38

    Hi Volker,
    Thanks for your work.
    Will you be working on your vho_active_scaffold project to bring it up to rails 4.0?


    • vhochstein
      Sep 12, 2013 @ 18:10:55

      Im not actively working on rails 4.0 support, because a day has not enough working hours. 🙂
      I ve seen that official activescaffold repository is already doing the move. Maybe that s an option for you. Otherwise I would accept pull requests…


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: