Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesgecko/1000970 to your computer and use it in GitHub Desktop.
Save jamesgecko/1000970 to your computer and use it in GitHub Desktop.
class VehiclesController < ApplicationController
# GET /vehicles
def index
@vehicles = Vehicles.all
end
end
development:
adapter: sqlserver
username: user
password: pass
database: dbname
host: "jdbc:sqlserver://myserver:1433"
Started GET "/vehicles" for 127.0.0.1 at Tue May 31 12:54:08 -0500 2011
Processing by VehiclesController#index as HTML
Malformed URI: java.net.URISyntaxException: Expected closing bracket for IPv6 address at index 43: jtds.sqlserver://user:pass@[jdbc:sqlserver://myserver:1433]/dbname?adapter=sqlserver&username=user&password=pass&database=dbname&path=dbname&host=jdbc%253Asqlserver%253A%252F%252Fmyserver%253A1433
Rendered vehicles/index.html.erb within layouts/application (50.0ms)
Completed in 85ms
ActionView::Template::Error (Malformed URI: java.net.URISyntaxException: Expected closing bracket for IPv6 address at index 43: jtds.sqlserver://user:pass@[jdbc:sqlserver://myserver:1433]/dbname?adapter=sqlserver&username=user&password=pass&database=dbname&path=dbname&host=jdbc%253Asqlserver%253A%252F%252Fmyserver%253A1433):
1: <h1>Listing Vehicles</h1>
2:
3: <% @vehicles.each do |vehicle| %>
4: <tr>
5: <td><%= vehicle.number %></td>
6: <td><%= vehicle.make %></td>
app/views/vehicles/index.html.erb:3:in `_app_views_vehicles_index_html_erb__1633649431_2264_0'
Rendered C:/dev/jruby-1.6.2/lib/ruby/gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/_trace.erb (8.0ms)
Rendered C:/dev/jruby-1.6.2/lib/ruby/gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (22.0ms)
Rendered C:/dev/jruby-1.6.2/lib/ruby/gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (45.0ms)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment