how to call view? #354
Answered
by
derekprior
edsondario
asked this question in
Q&A
-
I did according to the gem manual, but I dont show/call view created. Then, how to call/show view created? |
Beta Was this translation helpful? Give feedback.
Answered by
derekprior
Jan 19, 2022
Replies: 1 comment 2 replies
-
I don't fully follow the question. Did you create and run a migration with a You can access it by creating an ActiceRecord model for that view (e.g if your view is If you provide more detail or even a sample app, I can be of more help. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
derekprior
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't fully follow the question. Did you create and run a migration with a
create_view
statement? If so, that view should be created in your development database and visible inschema.rb
.You can access it by creating an ActiceRecord model for that view (e.g if your view is
posts
create aPost
model) or via direct SQL queries.If you provide more detail or even a sample app, I can be of more help.