I am attempting to generate scaffolds on legacy tables that have
underscores in the name. Scaffold does not see the underscore. I have
tried a backslash escape but it no work. I have looked around but i
cannot find a way to make it work. It’s like this:
The set table name did not work. I was able to generate a scaffold for a
table that did not have the underscore char on the same DB. I tried to
duplicate the app/** files created by that scaffold using the name of
the table with the underscore and appropriate column names in the form
view. No love. I think i am going to have to live without the
convinience of scaffold and set it all up manually through active
record. I was hoping there was a regex or some escape at the command
line that would allow me to input that underscore on the call to the
generate method with scaffold. Nice forum, love the response time!!
damon
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.