Questions tagged [roo]

Please use either spring-roo or roo-gem

104 questions
0
votes
1 answer

How can I allow GET requests without authentication but secure other HTTP methods?

I've created a webservice with spring roo and added spring security to the project. Everything works fine so far but now I want to allow to access entities information via HTTP GET requests without any authentication. The other HTTP methods like…
seveves
  • 1,282
  • 4
  • 17
  • 37
0
votes
1 answer

How to map data imported via xlsx with no headers in rails 4

I want to add an import function for the users of my rails app, however the files that they will import won't have a header and the interesting data will start at row 8. In the rows I only need 2 fields Here is an example of a line in the xlsx file…
dogg
  • 127
  • 1
  • 8
0
votes
1 answer

How do I open a new XLSX file in roo?

This code: newBook = Roo::Excelx.new('./test.xlsx') Gives me this error: C:/Ruby193/lib/ruby/gems/1.9.1/gems/roo-1.13.2/lib/roo/excelx.rb:85:in `block in initialize': file ./test.xlsx does not exist (IOError) Why? How do I make a new XLSX file…
Username
  • 3,463
  • 11
  • 68
  • 111
0
votes
1 answer

JPA/Hibernate generating wrong SQL in Spring Roo finder method

I'm developing a Spring web application whose persistence layer consists in Spring Roo generated JPA entities, with Hibernate as persistence provider and MySql as underlying DB. Among my entities I have a class Detection with a tstamp java.util.Date…
chrx
  • 2,169
  • 5
  • 24
  • 45
0
votes
1 answer

Redirecting to show after Excel Import

I followed thisRailscasts tutorial in order to allow importing of Excel data. My app is able to import data, however, I want to redirect to one instance rather than the index page, and this is proving to be difficult. When I have my controller set…
0
votes
1 answer

@RooJavaBean annotation - How to ignore service fields?

This is more an utility question, i just dont like messy code and it doesn't matter if it is in main file or associated onces. Is there a way to tell ROO to ignore services @Autowired fields in file ? Roo seems to generate every field declared in…
Daniel Hajduk
  • 336
  • 3
  • 15
0
votes
1 answer

Spring Roo DBRE SQL Azure connection

Has anybody successfully reverse engineered a SQL Azure database using Spring Roo ? I am using the JDBC driver and just get a message of 'Connection Required' whenever I try to run any of the 'database instropect' commands from Roo console. Is…
Nathan Power
  • 630
  • 1
  • 6
  • 14
0
votes
1 answer

rails spreadsheet processing and exceptions

In my rails app I am using Roo to process spreadsheet and I want to handle TypeError exception if the file is not a spreadsheet. begin xls = Roo::Excelx.new(@file_upload.file.path) rescue TypeError return redirect_to students_url, :flash…
Tiamon
  • 237
  • 2
  • 13
0
votes
1 answer

How to get multiple columns by using `Roo` gem in one-line

I want to get second to fourth column of a Excel file by using Roo::Excel class. columns = [] columns << Roo::Excel.new("foo.xls").column(2) columns << Roo::Excel.new("foo.xls").column(3) columns << Roo::Excel.new("foo.xls").column(4) I'm writing…
ironsand
  • 14,329
  • 17
  • 83
  • 176
-1
votes
1 answer

Update record if exists with roo gem

I have an import working correctly from a Spreadsheet using Roo gem. The problem is every time I call the rake task, new records are created. I want to update_attributes of the records in case the record exists. Is there any way to approach this?…
Gibson
  • 2,055
  • 2
  • 23
  • 48
-1
votes
1 answer

Why response.body not readable with xlsx format

I want to add the RSpec test for our exporting file with the xlsx file but after getting the index of the end-point with xlsx format, my response.body is not readable and I can't check file contents rspec: it 'returns a successful 200 response for…
kia
  • 81
  • 8
-1
votes
1 answer

How to extract value based on the header OR how to extract headers value from ods file in Ruby?

Want to extract values under "Location" header. EDIT: —-following extracted from following comments. It originally appeared this was a web related thing, but no, the OP is dealing with a spreadsheet, not a web page.)—- This is an excel sheet and I…
Sachin
  • 11
  • 2
-1
votes
1 answer

Spring Rest repository builder like Spring roo and MVC

Spring roo is a project to build MVC applications in minutes with JPA support (I think... I've never used it). Well, exist any spring project like roo to build Spring Rest Repositories with CRUD methods for an existing database?
-3
votes
1 answer

How can show message error in a view, when upload a excel file?

I'm trying to show a message on the new view Here the live demo: http://code.runnable.com/VrUvfZPOiiVooTAU/importing-excel-files-for-ruby-on-rails Here is the controller: def new end def create @errors = User.import(params[:file]) …
Carlos Morales
  • 1,137
  • 3
  • 15
  • 38
1 2 3 4 5 6
7