Skip to content

Instantly share code, notes, and snippets.

## the network_hosts form
[jason@sourceden impress]$ cat app/views/network_hosts/_form.html.erb
<table>
<tr><td>
<% form_for @network_host do |f| %>
<%= f.error_messages %>
<h3>Server Info</h3>
<p>
<%= f.label :name, "Hostname:" %><br />
<%= f.text_field :name %>
## ugly error:
NetworkHost Load (0.0ms) SELECT * FROM `network_hosts` WHERE (`network_hosts`.net_profile_id = 78)
ERROR: compiling _run_erb_app47views47network_hosts47_network_host46html46erb_locals_host_count_string_network_host_object RAISED compile error
/home/jason/Code/Ruby/impress/app/views/network_hosts/_network_host.html.erb:57: syntax error
end ; @output_buffer.concat "\n"
^
Function body: def _run_erb_app47views47network_hosts47_network_host46html46erb_locals_host_count_string_network_host_object(local_assigns)
old_output_buffer = output_buffer;object = local_assigns[:object];network_host = local_assigns[:network_host];host_count_string = local_assigns[:host_count_string];;@output_buffer = ''; __in_erb_template=true ; @output_buffer.concat " "; @output_buffer.concat(( render :partial => "common/admin_control_buttons", :locals => {:instance => network_host} ).to_s); @output_buffer.concat "\n"
@output_buffer.concat " "; content_for :header ; @output_buffer.concat "\
<%= render :partial => "common/admin_control_buttons", :locals => {:instance => network_host} %>
<% content_for :header %>
<style>
<% if network_host.server %>
.dell-server { background-image: url(<%= network_host.server.photo.url :small %>); }
<% end %> <!-- end of if network_host.server -->
</style>
<% end %> <!-- end of content_for header -->
<div class="host-number">
<%= host_count_string %>
## the html:
<div class="left_col">
<p>
A
</p>
</div>
<div class="right_col">
<p>
B
>> sw.each do |s|
?> d = SoftwareReleaseDetail.new :name => s.name+" Detail", :description => s.description, :installation_method => s.installation_method, :db_required_id => s.db_required_id, :db_schema => s.db_schema, :db_install_method_id => s.db_install_method_id, :db_install_method_description => s.db_install_method_description, :pdr_file_name => s.pdr_file_name, :pdr_content_type => s.pdr_content_type, :pdr_file_size => s.pdr_file_size, :software_release_prerequisite_id => s.software_release_prerequisite_id
>> quit
^
|
why is that happening???
# POST /resource/invitation
def create
# added by jlm 12/13/2010
@carriers = Carrier.all
# end of addition
self.resource = resource_class.send_invitation(params[resource_name])
# added by jlm 12/13/2010
resource.carrier_id = params[:carrier_id]
# end of addition
[jmichael@dal-apps Ruby]$ git clone https://[email protected]/chewmanfoo/impress.git
Initialized empty Git repository in /home/jmichael/Code/Ruby/impress/.git/
Cannot get remote repository information.
Perhaps git-update-server-info needs to be run there?
@chewmanfoo
chewmanfoo / gist:827032
Created February 15, 2011 03:08
dspace 1.7.0 ant fresh_install error on centos 5.5 with postgresql 8.1.22
load_registries:
[java] 2011-02-15 01:44:05,905 INFO org.dspace.core.ConfigurationManager @ Loading system provided config property (-Ddspace.configuration): config/dspace.cfg
[java] 2011-02-15 01:44:05,917 INFO org.dspace.core.ConfigurationManager @ Using default log4j provided log configuration,if unintended, check your dspace.cfg for (log.init.config)
[java] 2011-02-15 01:44:06,764 FATAL org.dspace.administer.RegistryLoader @ anonymous::error_loading_registries:
[java] org.postgresql.util.PSQLException: ERROR: syntax error at or near "RETURNING"
[java] at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1531)
[java] at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1313)
[java] at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:188)
[java] at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstracError:
[java] - ERROR: syntax error at or near "RETUR
Error unpacking rpm package ota_binaries – 1.5.1.16829-1.iot5.i386
error: unpacking of archive failed on file /home/sms/bin: cpio: rename
Error unpacking rpm package ota_binaries – 1.5.1.16829-1.iot5.i386
error: unpacking of archive failed on file /home/sms/logs: cpio: rename
Error unpacking rpm package ota_binaries – 1.5.1.16829-1.iot5.i386
error: unpacking of archive failed on file /var/lib/iot/logs: cpio: stat
@chewmanfoo
chewmanfoo / gist:834086
Created February 18, 2011 17:55
spec file
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch: i386
Requires: memcached start-stop-daemon perl-IOT-Spooler
Requires: perl-DBD-MySQL perl(Proc::Queue)
BuildRequires: libtool libmemcache-devel libxmlparser-devel mysql++-devel
BuildRequires: libevent-devel e2fsprogs-devel libxml2-devel libiop_log-devel
BuildRequires: ss7dpk-devel libioputils-devel libiopconfig-devel protobuf-devel