Questions tagged [roo]

Please use either spring-roo or roo-gem

104 questions
1
vote
0 answers

Save names and iterate through them ruby

Hey this is my first post and I´m an complete ruby noob. This is my existing source-code for my Dashing/Roo Project. require 'roo-xls' SCHEDULER.every '10m' do file_path = "/home/numbers.xlsx" def fetch_spreadsheet_data(path) s =…
roflb0b
  • 11
  • 1
1
vote
2 answers

Spring Roo web mvc setup generates error globalsearch.java class doesn't exists or has been deleted

I am quite new to Spring, now trying out Roo. I am following documentation from http://docs.spring.io/spring-roo/docs/2.0.0.M1/reference/html/ I was able to create the entity classes and fields, perform tests as well. Now when I run roo> web mvc…
Philip YW
  • 150
  • 1
  • 2
  • 15
1
vote
0 answers

Trying to color the cells of an excel sheet once data is verified in ruby-capybara

Below is my code where i try to find the text from the excel sheet and click that 'text' on the application. Once done I want to color that particular cell(where the text is located ) in green color. require 'rubyXL' require 'roo' workbook =…
RPD
  • 47
  • 8
1
vote
1 answer

How can connect mysql to spring roo?

Spring-roo can't be connect to MySQL when i execute command database reverse engineer --schema test --package then it give error: Could not initialize class com.mysql.jdbc.Connection... Image of error:
1
vote
0 answers

Excel data to table on Dashing Dashboard?

I have been trying to convert a Dashing widget called spreadsheetDemo to use the Roo GEM to simplify it and allow for it to cater for local and Google Doc Excel files.(Simply the same just with Roo) I began by looking at other widgets and sources…
ScottyJ
  • 11
  • 2
1
vote
0 answers

NameError: uninitialized constant Roo::Excelx::Zip

I am using ruby 2.2.1 and rails 4.2.1. I am using following gems. roo (2.0.1) roo-xls (1.0.0) rubyzip (1.1.7) I have written a rake task as follows. check_roo.rake require 'rubygems' require 'roo-xls' require 'roo' desc "desc" task :check_roo =>…
abhima9yu
  • 143
  • 1
  • 8
1
vote
0 answers

ArgumentError File Upload / Import Using Roo

I am passing the file object into this. Controller: RejectLoadsUpload.import(params[:file]) Model: def import(file) parse_file(file) end def parse_file(filename) #filename is absolute path posts = parse_csv(filename) posts.keep_if {|x|…
Big Al Ruby Newbie
  • 834
  • 1
  • 10
  • 30
1
vote
1 answer

Liquibase case issues in diff and generateChangeLog

I have a spring roo hibernate project and a MySql database and I want to use liquibase for managing migrations. I generated the initial changelog and did a changelogSync to mark all the changelogs as applied. Now when i did a diff (without…
Kechit Goyal
  • 3,952
  • 3
  • 20
  • 21
1
vote
2 answers

Entity manager has not been injected

I just started working with Spring ROO and I generated my entity classes using the database reverse engineer command. However whenever I try to call one of the CRUD method in the generated entity class, I keep getting this exception…
Imoh
  • 11
  • 4
1
vote
3 answers

Boolean values not being "read" in Rails

I imported some values from Excel using Roo into boolean fields in my Rails app. In Rails Console it looks like everything is working fine, but in my Rails App the boolean values don't seem to be read by Rails. I have a DataPoint model. One…
WallE
  • 83
  • 1
  • 1
  • 9
1
vote
0 answers

Spring STS editor shows error on aspectj methods, but it compiles and runs perfectly

I have an odd error after a recent update to the Spring STS platform. The project I am talking about is a Spring roo project. Roo generates ITDs for all roo entities. These generated methods are stored in AspectJ files (.aj). Earlier my quick fix…
1
vote
1 answer

Saving entitities back to db with Spring Roo active record pattern

I'm developing a spring web application using Spring Roo only for the generation of the persistence layer classes (The web application itself is developing by using the ZK framework), making use of Roo active record pattern. I have the simple…
chrx
  • 2,169
  • 5
  • 24
  • 45
1
vote
1 answer

Exceptions not shown in console (spring mvc/security)

I'm having a spring-mvc project set up with spring-roo, that runs on tomcat. After setting up spring-security, I can not see exceptions/stacktrace in the console anymore... I just go to the login page and try to login. In my UserService (that is…
cly
  • 31
  • 4
1
vote
1 answer

Import xls file in Rails 4 not working Roo::Excel.new

I am using rails 4 the following code to import .xls: def self.open_spreadsheet(file) case File.extname(file.original_filename) when ".csv" then Roo::Csv.new(file.path, nil, :ignore) when '.xls' then Roo::Excel.new(file.path, nil,…
Jagdish Barabari
  • 2,673
  • 3
  • 20
  • 21
1
vote
0 answers

How to map nested objects as parameter for Spring roo MVC Controller

I am trying to map a complex object which contains a list of complex objects. But after mapping (no errors) the List of this complex objects is empty. Probably I need to add an annotation or something else, any ideas or…
Anton
  • 449
  • 4
  • 14