Questions tagged [hyperstack]

Hyperstack is a Ruby-based DSL and modern web toolkit for building interactive web applications. Use this tag in questions related with development of web apps using this DSL, installation and configuration, compiling into JavaScript (by Opal) and also getting source maps with Webpack and Yarn

Hyperstack is a Ruby isomorphic framework integrated with Rails and React for building interactive web applications. Use this tag in questions related to the development of web apps using Hyperstack, installation and configuration, compiling into JavaScript (by Opal) and also getting source maps with Webpack and Yarn.

41 questions
0
votes
1 answer

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 try, thought HTTP would be a standard option class…
0
votes
1 answer

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 installed rails-hyperstack gem 'edge' branch, on…
KoyaChan
  • 3
  • 3
0
votes
1 answer

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. Update the rails form (happens to be in…
John Mount
  • 11
  • 3
0
votes
0 answers

"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 a component file called 'index.rb' with following…
cantonic
  • 1,033
  • 7
  • 12
0
votes
1 answer

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: …
cantonic
  • 1,033
  • 7
  • 12
0
votes
1 answer

How to use MaterialUI's Mobile-Stepper in HypserStack?

I try to use the mobile-stepper component (https://material-ui.com/demos/steppers/#mobile-stepper-progress) in Hyperstack but I get this error: Failed prop type: Invalid prop `nextButton` supplied to `MobileStepper`, expected a ReactNode. in…
chiwowahh
  • 25
  • 4
0
votes
1 answer

How to bypass policies when testing with hyperstack

I am trying to do some component unit tests with hyperstack and hyperspec. The problem is that I have policies that are blocking the test from running? For example I have a policy that only a user can look at their own orders. But unless I really…
Mitch VanDuyn
  • 2,838
  • 1
  • 22
  • 29
0
votes
1 answer

How do I enable params as methods in Hyperstack

I would like to use: class UserDetails < HyperComponent param :user render do H1 { user.name } end Instead of class UserDetails < HyperComponent param :user render do H1 { @User.name } end How do I enable this as the…
BarrieH
  • 373
  • 3
  • 11
0
votes
0 answers

Using javascript instead of opal in Hyperstack

All of the documentation for Hyperstack revolves around using Hyperstack with Opal. Is it possible to use Hyperstack's isomorphic models with javascript, instead of Opal?
Cereal
  • 3,699
  • 2
  • 23
  • 36
0
votes
1 answer

Won't save the attributes of a record

I'm trying to get the upgrade the example shown in this blog post https://medium.com/@mitch_23203/the-exact-same-app-in-hyperstack-7f281cef46ca to use hyperstack models like the followup blog post, but it just doesn't work. Here is my code after…
-2
votes
1 answer

How i can render Hyperstack Component on erb view?

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 the Hyperstack Component is embedded in…
Slava
  • 27
  • 4
1 2
3