76
questions
5
votes
3
answers
811
views
OpalRb with MeteorJS?
I have been intrigued by the power and elegance that Opal offers in the way of using pure Ruby vs CoffeeScript or, of course, JS.
How would one go about leveraging Opal for Meteor as the primary ...
4
votes
1
answer
206
views
How to integrate other javascript library in Volt framework?
I can't understand how to integrate existing JavaScript libraries into Volt.
With Volt 0.9.3 Opal Native object isn't available and use only the backticks with interpolation seems no pratical.
4
votes
1
answer
178
views
Volt rb framework unable to connect to database
when I fire volt server in the terminal, it gives me this error message
Unable to connect to the database. Volt will still run, but the
message bus requires a database connection to setup ...
4
votes
2
answers
215
views
How to create an admin area in Ruby Volt?
I've been playing a lot with Volt lately, and would like to figure out how to create an Admin area. The documentation has a section on restricting models for users, but it's still in the TODO list. ...
4
votes
0
answers
102
views
tracking all online users in Volt
I'm trying to make a record of all the users which are currently online.
Here's what I've tried:
In my "main_controller":
channel.on('connect') { puts "ON"; store._online_users << Volt....
3
votes
1
answer
69
views
Delete entire voltrb store collection
store.widgets.clear does not seem to save into the Database.
So I tried:
store.widgets.each do |i|
i.destroy
end
And this destroys only half of the records in the DB.
Any suggestions on how I can ...
3
votes
1
answer
171
views
Syncing with an External API in Volt Ruby Framework
I'm looking into Volt as an option for building an Admin interface to our REST API. The API is a separate application. I would like the Admin application to persist data to the API but also store it's ...
3
votes
2
answers
73
views
How do I add a button in ruby volt?
I'm trying to work out how to add a button in the ruby volt framework - it's a bit of a beginner question really.
I've tried to adapt the todos example (part 1 and part 2), but haven't got it to work....
3
votes
2
answers
107
views
Storing pictures in Ruby Volt
I am wondering what the best practice is to store pictures in a model in the Volt framework. Should I just assign it to a model's field or is there a better way?
2
votes
2
answers
82
views
Volt iteration comparison with promise
If I'm iterating through an ArrayModel using .each_with_index, is there a way to make rendering decisions based on the current index compared with the results of a Promise (at the moment, this ...
2
votes
1
answer
57
views
What is controller_group for in view call?
I just wanted to understand better the view call in main.hmtl: what is the third parameter {controller_group: 'main'} for in:
{{ view main_path, "title", {controller_group: 'main'} }}
Are there ...
2
votes
2
answers
143
views
VoltRB rspec testing a method can't convert Promise into Array
I am trying to do some rspec unit tests on a method in my model. The method returns a promise, and when resolved, the name of the person. The method is not the problem as I know that it works ...
2
votes
1
answer
60
views
How to make pages with a "template" controller and view in VoltRb
I'm having a problem in Volt where I need a bunch of pages with a "template" controller and view. Let me explain this in a little more detail:
Say, for example, I have a site about books. I have a ...
2
votes
1
answer
144
views
How do I do a jQuery toggleClass in Volt?
I'm playing around with Volt and currently trying to do a simple toggleClass for a sidebar in my Volt app (with no luck). Here is a code sample.
app/main/views/main.html
<:Title>
{{ view ...
2
votes
0
answers
52
views
Volt Framework Task returns string
I am currently working on a sports app.
Users should be able to create new teams and add users to the teams.
When a user creates the team, he/she should be able to search for users to add to the team, ...