Questions tagged [cuba]

Cuba is a Ruby microframework for web development.

Link for Cuba's Microframework: http://cuba.is/

Link for Cuba's Documentation (or rather book):http://theguidetocuba.io/

Link for Cuba's Slides: http://files.soveran.com/cuba/#0

Link for Cuba's Code: https://github.com/soveran/cuba

Link for Cuba's Gem: http://rubygems.org/gems/cuba

20 questions
3
votes
2 answers

Linking a stylesheet in Ruby's Cuba framework

This seems like it should be simple, but I cannot figure out how to get link a stylesheet to an erb template in a Cuba app. hello_world.rb require "cuba" require "cuba/safe" require "cuba/render" require "erb" Cuba.use Rack::Session::Cookie,…
jdesilvio
  • 1,794
  • 4
  • 22
  • 38
2
votes
1 answer

Is it possible to style a table with round corners in CUBA Platform?

I want to make rounded edges for my table. Just tried to modify v-table-border-radius. It did just make the border round, so it looks like that: What could I do?
melli
  • 59
  • 5
2
votes
1 answer

How to bind the docker container and the cuba process through localhost:9292 in Ubuntu 14

I'm on ubuntu 14.04 and I have a super simple Cuba App which seems to be lacking something: Gemfile: source "https://rubygems.org" gem 'cuba' config.ru require "./hello_world" run Cuba docker-compose.yml web: build: . volumes: - .:/myapp …
Jorge de los Santos
  • 4,583
  • 1
  • 17
  • 35
1
vote
4 answers

how to get enum id using its enum name

public enum EnumCountry implements EnumClass { Ethiopia(1), Tanzania(2), private Integer id; EnumCountry(Integer value) { this.id = value; } public Integer getId() { return id; } @Nullable public static…
user7360
  • 11
  • 1
  • 1
  • 4
1
vote
1 answer

Sidekiq server is not processing scheduled jobs when started using systemd

I have a cuba application which I want to use sidekiq with. This is how I setup the config.ru: require './app' require 'sidekiq' require 'sidekiq/web' environment = ENV['RACK_ENV'] || "development" config_vars =…
froy001
  • 614
  • 7
  • 21
0
votes
0 answers

Cuba library: Undefined symbols for architecture x86_64

I'm working on a M1 and trying to compile a cpp code with libquadmath and the Cuba library. On the site (http://www.feynarts.de/cuba/) is said that I can easily make use of GNU C compiler, problem is (and here I'm guessing) I get the following error…
Fredrigo6
  • 1
  • 4
0
votes
0 answers

Java CUBA Platform filter how use?

The problem is that the cube filter uses loadContext . But I redefine the method responsible for loading data and do not use loadcontext, but form a response for the front in the program. How do I apply a filter? @Install(to = "workProcessesDl",…
Buba
  • 101
  • 7
0
votes
1 answer

How to change progressBar in cuba into a circular

am using cuba studio v7.2 and i want to change the progressBar to circular, am stuck because i dont know which file to change and after following different documents, the file am finding they are read-only files, I cannot change anything. the online…
Armature
  • 7
  • 3
0
votes
1 answer

forgot password in cuba

On most websites, there is an option to get the system to reset the user’s password if they forgot the password. A new random password is sent to the user’s email after answering some secret question. The “Forgot Password” option is available on the…
Armature
  • 7
  • 3
0
votes
1 answer

Edit java code in data model in CUBA studio

How can one edit java source code in data model section in Cuba studio have tried to edit but one cannot edit the java code or how can one add IDE in the Cuba studio to enable editing.
Armature
  • 7
  • 3
0
votes
1 answer

I am trying to run the code of "GrouPy" according to their given instruction, but it is giving me errors. I am using Python 3, Cuda 9 and gcc6

I have executed the following command just like it was asked in provided README. The main code was given for heaconv. The same error I receive when I try to run the individual code of GrouPy as well. python train_cifar.py…
0
votes
1 answer

Not able to connect to internet/repo through proxy

I use a java framework to develop a crud application. This framework is called: "Cuba.Platform". My problem is, that I am not able to open the project in cuba. When I try to open my project there, I get this problem: “Repository contains cuba…
Schaumkuesschen
  • 139
  • 4
  • 18
0
votes
2 answers

Mandrill is giving me "Sender address rejected: Domain not found" when sending emails to nauta.cu

I have my Mandrill account sending emails to many clients. The ones using addresses of the type xxx@nauta.cu are not receiving any emails at all, and when I go to Mandrill it says: Nov 8, 2015 11:39 pm 450 4.1.8 : Sender address rejected: Domain…
Salvi Pascual
  • 1,788
  • 17
  • 22
0
votes
0 answers

stuck getting em-websocket, Thin and nginx working together with Cuba

I am using Cuba for some basic testing and learning. I have some code like below which works fine. Thin starts and works well with Cuba and I can use EM for websockets etc.. I want to now place nginx in front of Thin so I've followed some tutorials…
Flo Woo
  • 949
  • 1
  • 12
  • 26
0
votes
2 answers

Static File serving using Rack

I have this block of code: require "cuba" require "mote" require "mote/render" Cuba.plugin(Mote::Render) Cuba.use Rack::Static, # urls: %w[/index], root: File.expand_path("./public", __dir__) Cuba.define do on(root) do render("index",…
Vikaton
  • 2,227
  • 3
  • 14
  • 23
1
2