This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DEPRECATION WARNING: Passing a template handler in the template name is deprecated. You can simply remove the handler name or pass render :handlers => [:erb] instead. | |
ActionView::MissingTemplate (Missing partial webpages/remove_loading.js, application/remove_loading.js with {:locale=>[:en], :formats=>[:html, :text, :js, :css, :ics, :csv, :png, :jpeg, :gif, :bmp, :tiff, :mpeg, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json, :pdf, :zip], :handlers=>[:erb, :builder, :coffee]}. Searched in: | |
* "/my/path/app/views" | |
* "/my/home/dir/.rvm/gems/ruby-1.9.3-p0@gemset_3.2.1/gems/devise-2.0.1/app/views" | |
): | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
projects@server506-dev:~/gouzilla/current$ gem env | |
RubyGems Environment: | |
- RUBYGEMS VERSION: 1.8.24 | |
- RUBY VERSION: 1.9.3 (2012-04-20 patchlevel 194) [x86_64-linux] | |
- INSTALLATION DIRECTORY: /usr/local/rvm/gems/ruby-1.9.3-p194@gouzilla_3.2.1 | |
- RUBY EXECUTABLE: /usr/local/rvm/rubies/ruby-1.9.3-p194/bin/ruby | |
- EXECUTABLE DIRECTORY: /usr/local/rvm/gems/ruby-1.9.3-p194@gouzilla_3.2.1/bin | |
- RUBYGEMS PLATFORMS: | |
- ruby | |
- x86_64-linux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GET /feedback_channels/new | |
# GET /feedback_channels/new.xml | |
def new | |
@feedback_channel = FeedbackChannel.new | |
get_analogue_channels | |
respond_to do |format| | |
format.html # new.html.erb | |
format.xml { render :xml => @feedback_channel } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
validates_inclusion_of :channel_weight, :in => 1..99, :message => "only numbers between 1 and 99 are allowed.", :if => condition_is_fulfilled | |
def condition_is_fulfilled | |
if :analogue_to != "None" | |
return true | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define command { | |
command_name restart-service | |
command_line /etc/nagios3/conf.d/event_handler_script.sh $SERVICESTATE$ $SERVICESTATETYPE $ $SERVICEATTEMPT$ $HOSTADDRESS$ $ARG1$ $SERVICEDESC$ | |
} | |
define service { | |
host_name servername | |
service_description Service Name | |
servicegroups example-service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CONSTRUCT { ?s ?p ?o . <http://rdf4ecommerce.esolda.com/digitalcamera#sensor> <rdf:type> <gr:datatypeProductOrServiceProperty> . <http://rdf4ecommerce.esolda.com/digitalcamera#sensor> <rdfs:subPropertyOf> <gr:datatypeProductOrServiceProperty> . <http://rdf4ecommerce.esolda.com/digitalcamera#sensor> <rdfs:domain> <rdf4ec:DigitalCamera> . <http://rdf4ecommerce.esolda.com/digitalcamera#sensor> <rdfs:range> <xsd:boolean> . <http://rdf4ecommerce.esolda.com/digitalcamera#sensor> <rdf4ec:priority> "92"^^xsd:int . <http://rdf4ecommerce.esolda.com/digitalcamera#sensor> <rdf4ec:attributePosition> "19"^^xsd:int . <http://rdf4ecommerce.esolda.com/digitalcamera#sensor> <rdfs:comment> "sadadadad"@en . <http://rdf4ecommerce.esolda.com/digitalcamera#sensor> <rdfs:label> "asdasd"@en . <http://rdf4ecommerce.esolda.com/digitalcamera#sensor> <rdf4ec:belongsToDomainSegment> <http://rdf4ecommerce.esolda.com/digitalcamera#EnergyConsumption> . <http://rdf4ecommerce.esolda.com/digitalcamera#sensor> <rdf4ec:exampleOfUsage> "asdadasd"^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
validates_numericality_of :channel_weight, | |
:only_integer => true, | |
:message => "integer values only.", | |
:allow_blank => true, | |
:if => Proc.new { |record| record.analogue_to != "None" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## hTML ERB code: | |
<td><%= link_to 'Destroy', feedback_channel, :confirm => 'Are you sure?', :method => :delete %></td> | |
## HTML code: | |
<a rel="nofollow" data-method="delete" data-confirm="Are you sure?" href="/feedback_channels/4">Destroy</a> | |
## LOG: | |
Started GET "/feedback_channels/4" for 127.0.0.1 at Fri Jun 01 11:51:20 +0200 2012 | |
Processing by FeedbackChannelsController#show as HTML | |
Parameters: {"id"=>"4"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
element.attachEvent is not a function | |
observe(element=[Document 4], eventName="click", handler=function())protot...6458616 (line 5578) | |
_methodized()protot...6458616 (line 431) | |
nested_form.js?1308670573()nested...8670573 (line 1) | |
[Break On This Error] | |
element.attachEvent("on" + actualEventName, responder); | |
protot...6458616 (line 5578) | |
element.attachEvent is not a function |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PdoChangeType < ActiveRecord::Base | |
has_one :tabu_criteria, :dependent => :destroy | |
end | |
class TabuCriterium < ActiveRecord::Base | |
belongs_to :pdo_change_type | |
end | |
## view index.html.erb: |