I'm having some difficulty adding some namespacing to objects I use with
ActiveScaffold
I have a subview, shown here in haml, that works for a join table called
blocks_pages. (It has a corresponding ruby object BlocksPage)
= render :active_scaffold => 'blocks_pages', :params => { id: nil },
:constraints => { :page_id => @record.id }
I'd like to rename this object to Platform::BlocksPage, but when I do so, I get
this:
uninitialized constant BlocksPage
I need a way to tell Active Scaffold that the object I want to use is the
Platform::BlocksPage object, and not the BlockPage object. I tried various
iterations of using the ruby object's name as the string passed to the
:active_scaffold parameter, and also I tried 'platform/blocks_pages' but this
did not work.
Any suggestions?
-Jason
----
Jason Fleetwood-Boldt
[email protected] <mailto:[email protected]>
http://www.jasonfleetwoodboldt.com/writing
<http://www.jasonfleetwoodboldt.com/writing>
If you'd like to reply by encrypted email you can find my public key on
jasonfleetwoodboldt.com <http://jasonfleetwoodboldt.com/> (more about setting
GPG: https://gpgtools.org <https://gpgtools.org/>)
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails Gem" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/activescaffold.
For more options, visit https://groups.google.com/d/optout.