Questions tagged [voltrb]

Volt is a Ruby web framework where your ruby code runs on both the server and the client (via opal). The DOM automatically updates as the user interacts with the page. Page state can be stored in the URL. If the user hits a URL directly, the HTML will first be rendered on the server for faster load times and easier indexing by search engines.

Instead of syncing data between the client and server via HTTP, Volt uses a persistent connection between the client and server. When data is updated on one client, it is updated in the database and any other listening clients (with almost no setup code needed).

Pages HTML is written in a handlebars-like template language. Volt uses data flow/reactive programming to automatically and intelligently propagate changes to the DOM (or any other code wanting to know when a value updates). When something in the DOM changes, Volt intelligently updates only the nodes that need to be changed.

https://github.com/voltrb/volt

77 questions
0
votes
1 answer

Action not being called on page load

In my ruby Volt project, I am getting the following error: AttributeBinding Error: # I know that it is coming from trying to access the name attribute on the model while it is nil. My routes file is…
user3579220
  • 187
  • 1
  • 2
  • 9
0
votes
1 answer

Routes Prefix voltrb

Is it possible to prefix or group routes (for a component maybe) Something like prefix '/admin' do client '/users' , component:'admin', controller: 'users', action:'index' end Cheers, Kevin
kev97444
  • 21
  • 1
0
votes
1 answer

Websocket, Error 404 in voltrb

I tried deploying a volt application using Docker via cloud66. The image is deployed, the page is accessible but i can not login because i get the error : WebSocket connection to 'wss://mps_sports_c66.totole.xyz/socket' failed: Error during…
kev97444
  • 21
  • 1
0
votes
1 answer

Using autoprefixer with Volt

Is there a way to setup autoprefixer in a Volt application?
neurodynamic
  • 4,294
  • 3
  • 28
  • 39
0
votes
1 answer

How can I use a new main.html for a component in Voltrb?

I added a component for an admin and a guest section to my volt app and now I need a new main.html to customize the main template for these sections. Is there a way to use a new main.html ore to load the views in a template file for a…
Ben
  • 23
  • 1
  • 7
0
votes
0 answers

PhantomJS load issues in fresh Volt app

I tried to run BROWSER=phantom rspec spec on a newly created Volt App and hit the following error: WARNING: LoadError: cannot load such file -- volt/views/notices/index # ... continues for some time ... This was a pretty default spec: require…
Rick
  • 8,366
  • 8
  • 47
  • 76
0
votes
3 answers

Fire an action when a link gets clicked to a page that has the same action (VoltRb)

At http://localhost:3000/books, I have an index page where I have a list of books. When you click on one of the links, the action to which it is bound, book, gets fired: However, when you click on one of the links from one of the book pages, the…
GDP2
  • 1,948
  • 2
  • 22
  • 38
0
votes
1 answer

Selenium timeout in Volt 0.9.5pre4

I tried to run BROWSER=firefox rspec spec on a freshly created Volt App and got this error: Selenium::WebDriver::Error::WebDriverError: unable to obtain stable firefox connection in 60 seconds (127.0.0.1:7055) The app hangs and raises that error…
Rick
  • 8,366
  • 8
  • 47
  • 76
0
votes
1 answer

Type restriction for Volt Framework model throws error

I would like to set type restrictions for a Volt Model like so class EventItemBlock < Volt::Model :name, String :items, Volt::ArrayModel end When I save the file, Volt throws an error behind-the-scenes but does not crash. The relevant lines are…
jason a
  • 21
  • 3
0
votes
3 answers

Using a Volt::Model as a dictionary of Key/Value pairs

I would like to use a Volt::Model as a reactive dictionary in a view. Ideally, I would like something like this:
{{ dictionary.each do |key, val| }}
Term: {{ key }}
Definition: {{ val }}
{{ end }}
Is this…
Rick
  • 8,366
  • 8
  • 47
  • 76
0
votes
1 answer

Failed to find the component of a local gem component

I'm making a volt component called volt-date_time_picker. When I use the component from a simple app, I obtain this error: RuntimeError at / Unable to find component 'font_awesome', make sure the gem is included in your Gemfile This is the…
0
votes
1 answer

hot to write an api in a voltrb gem

I have created a local volt gem and I would like to write a simple api: def add(a,b) a+b end But I don't know where to write this code and how to require it from the app. The only place where I have got it working is in…
0
votes
2 answers

limit the results of a query server side

I would like to know how to limit a query (server side. My knowledge is Meteor). For example, the comments of a particular post instead of retrieving all the comments in database. I want it to be limited server side to avoid malicious client to…
0
votes
1 answer

Save uploaded files to Google Drive from website built on Ruby Volt

I'm building a web site using Ruby Volt for a publication. I'd like users to be able to upload images that will be stored on Google Drive. The Google Drive will belong to the publication, not to the site users who are uploading the images. If…
dlu
  • 749
  • 10
  • 27
0
votes
1 answer

Where to put frontend `require` files in a Volt project

I'm writing an app that requires me to define a Ruby class outside of the controller, and then instantiate it within a controller. I put it in lib/my_file.rb and also initializers/client/my_file.rb and got the same result: Sprockets::FileNotFound…
Rick
  • 8,366
  • 8
  • 47
  • 76