Questions tagged as 'ruby-on-rails'

2
answers

Create New Repository - Git / Bitbucket. Git (Could not read from remote repository)

I'm doing the Ruby on Rails tutorial and I'm getting into a problem. I've already made a hello_app (cap one) repository, and now I'm trying to make the toy_app (cap two) . This is the walkthrough of the tutorial: 1) I created a new directo...
asked by 14.10.2015 / 00:17
0
answers

Error when using TDD with Ruby

Hello, I'm starting to study about TDD with Ruby on Rails and I'm following a tutorial from Nando Viera [ 1 ], but when trying to execute a rake: test: units the following error is returned: UserTest#test_truth: ActiveRecord::StatementInval...
asked by 30.11.2015 / 01:26
1
answer

Saving information in bank and sending via post in Rails

I have a view that explains a system and allows the user to submit content for publication. He just types in a textarea and this text is sent to a WP blog, along with his username and email, which turns him into a guest post. The problem is t...
asked by 09.09.2015 / 03:23
0
answers

Nginx with Oracle

I'm having the following problem, set up my nginx tag with the gem passenger , for my application > ruby-on-rails , using Oracle database ( instant client ), at first everything is set correctly, however when I go to the address of my server,...
asked by 20.08.2015 / 13:46
1
answer

Update in Rails 4 using: has_many: through many-to-many relationship (has_and_belongs_to_many)

I have a question about how to do an update on rails 4 using :has_many :through , if there is a more correct and easier way, I'm open to suggestions. Error: app/views/articles/_form.html.erb<label>Category</label><%...
asked by 29.09.2015 / 20:30
0
answers

Rails Form Builder is not rendering all content

I created a select with form builder , but it does not render all content inside it def select_box(name, value, select_options = {}, html_options = {}) content_tag :div, class: class_name do label_content = html_options.delete(:label)...
asked by 21.08.2015 / 19:25
0
answers

Problem deploying with capistrano

I'm having a very strange problem with capistrano when deploying to my staging environment. I'm using Ruby 2.0.0 , Rails 4.2.3 and Capistrano 3.4.0 . My environment on the server is ready, however when I give a cap staging deploy , the...
asked by 26.08.2015 / 20:18
0
answers

Radio buttons with simple_form nested

I need to set an input radio into a simple form with association. I'm following the documentation , but the difficulty is being in rendering radio the right way . Instead of displaying the contents of the association it dis...
asked by 24.07.2015 / 21:35
0
answers

How to upload files?

Well friends, I have to upload pdf files (and only in that format) and link to a user. How could I do that? What is the best way to structure the files saved on the server?     
asked by 04.06.2015 / 06:36
2
answers

Problem rendering partials dynamically

I have the following code: <table class="table table-bordered table-striped" border="0"> <% @time_line.each do |time_line| %> <%= render partial: partial_name( get_type(time_line) ), locals: { register: time_line } %>...
asked by 21.05.2015 / 20:21