Questions tagged as 'ruby'

0
answers

Pentestbox - error installing beef

Please help me, when I try to install BeEF in the windows pentestbox using the bundle install command, the following error message appears: An error occurred while installing libv8 (3.11.8.17), and Bundler cannot continue. and also: Mak...
asked by 30.06.2018 / 04:17
0
answers

undefined method 'user_id' for #User: 0x00000006434580 rails admin ruby 4

My application is experiencing the following error: undefined method 'user_id' for # If you want to use a RailsAdmin virtual field (= a field without corresponding instance method), you should declare 'formatted_value' in the field definitio...
asked by 21.06.2018 / 15:20
0
answers

C language and RubyInstaller with system variables for windows

I am a Linux user. However I do not need to depend on a single operating system environment to perform C routines, much less still depend on IDE for certain tasks. On Linux (most of the distros I've worked with), the gcc compiler is already inst...
asked by 21.06.2018 / 15:17
1
answer

Search with Ruby on Rails to generate a report

Well I have a project with scaffolds of books and loans and I need to do a search for a specific book and as a result show all the loans in that book had I have no idea how to start doing this.
asked by 17.05.2018 / 20:58
0
answers

Convert Ruby string to C ++ char pointer

I need to call a command from a DLL by Win32Api. LoadTexture = Win32API.new('System/SFML.dll', 'sfml_load_texture', 'p', 'p') I made two attempts: LoadTexture.call("folder/file.png") This second attempt only worked on wchar_t :...
asked by 19.05.2018 / 22:10
1
answer

Text area with image

Hello, I'm going to make a form and I do not know how to do it to include an image inside the text area, something like that. TEXT TEXT IMAGE TEXT Something of a kind for the include user to know? As it is done here in stack ov...
asked by 02.06.2017 / 13:27
1
answer

Direct button depending on whether the user is logged in or not

I have a button that takes to another screen, but if the user is not logged in the system it should redirect to the login screen and not to the one that is already going. Can you do it right on link_to? li= link_to 'Anuncie', new_subscription_...
asked by 09.05.2018 / 21:47
1
answer

RoR Create and Update

I am developing a system in ROR and I have a news table in the bank, being that there is a highlight column and every time the admin registers another notice as highlight even if there is already one in the bank, the controller has to remove the...
asked by 10.05.2018 / 15:30
2
answers

Hosting Ruby application with Sinatra

I'm starting my studies in Ruby with DSL Sinatra. For this I installed Node.js then ruby with Sinatra. My applications locally are working normally. But I would like to make them available for web browsing. (so you can place the call anywhere...
asked by 21.05.2018 / 16:30
0
answers

Rails has_many through with where clause

I need help with the following problem: Is it possible that my Analysis model has_many :klasses, through: :subjects , but being filtered by attributes of the join_table AnalysisSubject? Or should my modeling be any different? class An...
asked by 07.05.2018 / 05:43