Posts by noob-rails • 127 points
8 posts
-
2
votes1
answer52
viewsQ: Testing with rspec - problems with stub and should
Hello. I am new to testing and have two tests with problems, one of helper and one of model, being: 1) TodosHelper TodosHelper#visibility(todo) when todo is public Failure/Error: before {…
-
1
votes1
answer108
viewsQ: Error installing rvm switches
This error occurs for the two things I tried: 1 - install ruby and from there install rvm Requirements. Error running 'requirements_debian_libs_install gawk libreadline6-dev libyaml-dev sqlite3…
rubyasked noob-rails 127 -
2
votes1
answer1009
viewsA: Logic for Cobrinha game
With a brief search, I found some tutorials on the net. Brief explanation: You hold all snake units on a list. There is head and tail, which are the first and last elements of the list. So it’s…
canswered noob-rails 127 -
1
votes0
answers19
viewsQ: problems with haml to html/erb conversion
Hello. I have the following excerpt in haml: %a.btn.btn-small.notes_campaign{:role => "button", :data => {:campaign_group_id => campaign_group.id}} %i.icon-tasks Notes And drop to pass it…
-
2
votes4
answers3211
viewsQ: How to do strstr() in jquery
Is there any way strstr() (which exists in php) in jQuery? I need to create a Function? I want to be checked if there is the exact string that I am passing in another string, for example:…
jqueryasked noob-rails 127 -
1
votes1
answer74
viewsQ: Data modeling for user-favorite tasks
I have an application where the user can create a task. The task in turn can be public or private. If it is public, other users may see it and favorite it. That is, many users may prefer the same…
modelingasked noob-rails 127 -
1
votes1
answer629
viewsQ: Ruby on Rails does not save to bank
Good night, you guys! I created a small form with two fields and in the future I intend to expand this form with one or two more fields. It happens that the insertion of the data in the sqlite is…
-
2
votes1
answer334
viewsQ: Nomethoderror in Home#index
Next, I received a challenge to create a page with login, using Sign in and with the user logged in, that he could create a task list, an to-do list. The login I managed to do and works well,…