Questions tagged as 'ruby'

1
answer

Deprecation Warning - Compass Unsemantic

I'm having a problem compiling some SASS + Compass + Unsemantic code that generates the following warning: DEPRECATION WARNING on line 17 of /Library/Ruby/Gems/2.0.0/gems/compass-unsemantic-0.1.5/stylesheets/compass-unsemantic/_unsemantic-grid...
asked by 01.02.2014 / 03:57
2
answers

How do I query a polymorphic relationship in Rails 3/4?

I have a jobs table and a activities table. A Job can have multiple Activities. The relationship is polymorphic. Tables: job activities ----------- ------------- id id ... target_id target_...
asked by 31.01.2014 / 18:54
2
answers

How to perform test with RSpec?

Even studying TDD with RSpec I still have difficulties understanding how to perform certain tests. How would I do to perform a test for this method that has an article return? NOTE: I use MongoDB with ORM mongoID. In this case, is it...
asked by 03.02.2014 / 12:55
2
answers

Rails update to 5.2 error: The direct method can not be used inside a routes scope block

I'm trying to upload the Rails version from version 5.1.2 to version 5.2.2 and I'm having the following error when I try to upload the application server: The direct method can't be used inside a routes scope block (RuntimeError) Here...
asked by 04.01.2019 / 20:41
1
answer

link_to action e id

I want to make an action to change the password and I have the following link_to to redirect to html.erb with the correct user <%= link_to 'Mudar Senha', "edit_password_form/" + @usuario.id.to_s %> I feel like I'm doing the wrong th...
asked by 23.05.2014 / 01:39
1
answer

How to test Web Service in Ruby on Rails

I'm having the following question, I'm doing a web- service server with my application ruby -on-rails , I'm using gem wash-out , I understood how it works and managed to get my web-service to run, but I'd like to know how to test my ser...
asked by 05.06.2014 / 15:55
1
answer

Dynamic Field Forms in Rails?

For my CBT project, I have the following specification: A user, to register a production item, needs to report all of their ingredients. To facilitate the interaction, I thought of, listing all the ingredients registered in checkboxes. When t...
asked by 02.07.2014 / 16:03
1
answer

Rack - Error Posting Redmine Plugin

I'm creating a plugin for Redmine that will act as a generator and publisher of projects within a repository, however I'm having trouble accessing my Publish project button. The function I created to publish the project is in the same file...
asked by 25.02.2014 / 15:44
1
answer

How to install Sass gem in Windows

I wanted to install Sass's gem so I could compile it in Windows. I installed the normal Ruby Installer and soon after I went into the Sass documentation on how to run it on Windows using console mode, however when I run the gem install sass...
asked by 10.02.2014 / 14:37
0
answers

Treating URL / string in Ruby on Rails

I have to edit a received URL, but in some cases the URL may contain an external reference with http and this breaks my system because it only accepted paths to the platform itself. Here is a snippet of code and some output: <%-ob...
asked by 17.12.2018 / 17:22