Skip to content

Instantly share code, notes, and snippets.

<%= form_for @analysis, :html => { :multipart => true } do |f| %>
<%= render "shared/errors", object: @analysis %>
<fieldset>
<ol>
<li>
<%= f.label :title %>
<%= f.text_field :title, size: 50, autofocus: true %>
</li>
<li>
<%= f.label :body %>
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
lightbox.option({
'fadeDuration': 20,
'maxWidth' : 50
});
[07:31:24] <Andr3as> xrandr --listproviders
[07:31:24] <Andr3as> Providers: number : 2
[07:31:24] <Andr3as> Provider 0: id: 0xa1 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 6 outputs: 4 associated providers: 0 name:radeon
[07:31:24] <Andr3as> Provider 1: id: 0x59 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 6 outputs: 4 associated providers: 0 name:radeon
[07:31:32] <Andr3as> so, there is two cards (check)
[07:31:55] <Andr3as> if i hava an empty xorg.conf it fires up onle the 4 monitors of the "upper card"
[07:33:16] <Andr3as> if i add 2 device sections into the xorg.conf with radeon as a driver, it fires up all montors but only 4 are visible in the (as example) gnome display settings.. the other 4 monitors of the other card are on and i can see the mouse pointer like in the vanilla xserver
[07:33:54] <Andr3as> but they mirror 1 monitor of the upper card over the 4
[07:34:12] <Andr3as> visible and "workable" are this time the 4 monitors of the "Lower"
<%= form_for @stock do |f| %>
<%= render "shared/errors", object: @stock %>
<div id="loginbox" class="col-md-6 col-md-offset-3 col-sm-8 col-sm-offset-2 user-box">
<div class="panel panel-info">
<div class="panel-heading">
<div class="user-form-title panel-title"><%= purpose.to_s %></div>
</div>
<fieldset class="form-group">
<%= f.label :symbol %>
<%= f.text_field :symbol, size: 50, autofocus: true, class: 'form-control' %>
NoMethodError in StocksController#show
undefined method `times' for #<String:0x007f9bef44ed40>
Extracted source (around line #19):
17
18
19
20
21
22
<div class="col-md-12 center-text">
<h1><%= @stock.name %> (<%= @stock.symbol %>)</h1>
<small>
<% if signed_in? %>
<%= link_to('Stocks list', stocks_path) %>
<% if current_user.admin? %>
<%= link_to '| Edit Stock', edit_stock_path(@stock), class: 'button' %>
| <%= link_to 'Delete Stock', @stock,
method: :delete,
irb(main):021:0> SearchSuggestion.index_charts
/home/andreas/railsdev/chartbook/app/models/search_suggestion.rb:10: warning: toplevel constant Chart referenced by ChartsController::Chart
Chart Load (0.8ms) SELECT "charts".* FROM "charts" ORDER BY "charts"."id" ASC LIMIT 1000
SearchSuggestion Load (0.5ms) SELECT "search_suggestions".* FROM "search_suggestions" WHERE "search_suggestions"."term" = $1 ORDER BY "search_suggestions"."id" ASC LIMIT 1 [["term", "test"]]
SearchSuggestion Load (0.3ms) SELECT "search_suggestions".* FROM "search_suggestions" WHERE "search_suggestions"."term" = $1 ORDER BY "search_suggestions"."id" ASC LIMIT 1 [["term", "test"]]
SearchSuggestion Load (0.3ms) SELECT "search_suggestions".* FROM "search_suggestions" WHERE "search_suggestions"."term" = $1 ORDER BY "search_suggestions"."id" ASC LIMIT 1 [["term", "qeq"]]
(0.2ms) BEGIN
SQL (0.5ms) INSERT INTO "search_suggestions" ("popularity", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["popul
config.action_view.field_error_proc = Proc.new { |html_tag, instance|
"<div class='field error'>#{html_tag}</div>".html_safe
}
Started PATCH "/users/28/edit" for 192.168.0.100 at 2016-09-23 22:40:26 +0200
Processing by UsersController#edit as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"BILLq+y8oXYL6aECCZCPONCAalsaKMYfZWFB50J3kNRQCSdt1Fy+X17fExIXML0bi5p00mH07lXXJNKOecytjA==", "user"=>{"name"=>"Name Update", "email"=>"email@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "button"=>"", "id"=>"28"}
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 28], ["LIMIT", 1]]
Rendering users/edit.html.erb within layouts/application
Rendered shared/_errors.html.erb (0.4ms)
Rendered users/edit.html.erb within layouts/application (3.6ms)
Rendered application/_favicon.html.erb (8.4ms)
User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2 [["id", 28], ["LIMIT", 1]]
Rendered layouts/_header.html.erb (3.6ms)
class ContactMailer < ApplicationMailer
# Subject can be set in your I18n file at config/locales/en.yml
# with the following lookup:
#
# en.contact_mailer.message.subject
#
def message(message)
@message = message