41 questions
-2
votes
1
answer
43
views
How i can render Hyperstack Component on erb view? [closed]
For example i have a erb page with many logic. I wanna create user messages on this page with Hyperstack. How i can render Hyperstack component on this erb Page?
Upd:
I know this is possible because ...
0
votes
1
answer
69
views
Is there a way to use React-Native with Hyperstack and Ruby?
I would like to use React-native with Ruby.
My choice would be Hyperstack, but it is not clear if I can use it only with react and not react-native.
Any help?
0
votes
2
answers
55
views
show pdf in browser from HTTP.get('/my_pdf')
Ηι!
I use HTTP.get('/ehde_pdf') that through routes.rb calls a controller method that executes this code:
send_data(
"#{Rails.root}/tmp/ehde_pdf.pdf",
filename: "...
1
vote
1
answer
95
views
Can Hyperloop Work with the newest Async/Await?
I see that the examples on https://hyperstack.org/ describes making a fetch as a wrapper around priomsies.
I know that in JS async/await is syntatic sugar around promises, but Im curious if I can ...
0
votes
0
answers
124
views
On hyperstack, deletion of "has_many :through" association fails only the first time
On hyperstack, Assignment#destroy method fails with "Bad request" only on the first trial, where the Assignment is a model through which "has_many" relationship is made. The #destroy succeeds on the ...
0
votes
1
answer
81
views
How to use HTTP in hyperstack
I have made a basic install of a hyperstack rails app using hyperstack.org's installation instructions, trying to add a HTTP.get request in an after_mount callback.
Not really sure what else I could ...
0
votes
1
answer
67
views
On Hyperstack, delete method doesn't update has_many relationship in database
When I use delete method to update a has_many relationship in a model on Hyperstack, the association is not updated in the database, and the association is deleted only on the front end side.
I have ...
0
votes
1
answer
39
views
How to enable Hyperstack app in Rails 5 running on Heroku? Works fine on my Dev machine
Hyperstack updates to client data work locally but not after the app is deployed to Heroku.
We are using a small rails 5 app to explore how to combine legacy rails apps with Hyperstack capabilities....
1
vote
2
answers
196
views
Can I use something along the lines of String#constantize to initialize a Hyperstack::Component?
I have some objects in my DB that I like to render with a dedicated Hyperstack view Component.
Lets say my objects have a unique name property from A to J. Now I would like to loop through them with ...
0
votes
0
answers
45
views
"Uninitialized constant" errors in Hyperstack: models and components cannot be found
This is a weird error, because everything worked fine last week. When I wanted to start the app in development mode today I got multiple "Name Errors" saying that some classes cannot be found.
I have ...
0
votes
1
answer
150
views
Hyperstack deployment problem: No such file to load -- models/application_record.rb (LoadError)
I am using hyperstack version 1.0.alpha1.4
My app works fine in development, but when I try to deploy it in production mode, I get the following error:
/app/vendor/bundle/ruby/2.5.0/gems/...
1
vote
1
answer
70
views
Restrict Hyperstack components/models to only those necessary for some specific page to work?
When you access some page in Hyperstack, every model from app/hyperstack/models directory is included and sent to the browser. For the sake of security and performance, is it possible to load (...
1
vote
1
answer
2k
views
Hyperstack doesn't find landing page resource
Hypertext /install guide shows you how to add Hypertext to an existing Rails app. I've got to the point where I should be able to launch the legacy app as before, but the routes to image resources ...
1
vote
1
answer
365
views
What is the most accurate way to check if you are in rails server process for the needs of Hyperstack
Hyperstack is an isomorphic framework where same code can run server or client side. So there are specific cases where depending on where some piece of code gets executed (server or client side) ...
1
vote
1
answer
83
views
How do you convert this JSX to Hyperstack?
How would you convert this JSX into a Hyperstack Component?
const Stopwatch = () => (
<ReactStopwatch
seconds={0}
minutes={0}
hours={0}
limit="00:00:10"
onChange={({ hours,...