Skip to content

Instantly share code, notes, and snippets.

View marconipoveda's full-sized avatar

MP marconipoveda

View GitHub Profile
npm WARN config production Use `--omit=dev` instead.
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated [email protected]: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN 
<p>
<b>Name:</b>
<%=h @post.name %>
</p>
<p>
<b>Email:</b>
<%=h @post.email %>
</p>
mapo@mapo-laptop:~/Devel/RoR/exchan$ ruby script/server
=> Booting WEBrick...
=> Rails 2.2.2 application started on http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with --help for options
[2009-01-19 22:57:24] INFO WEBrick 1.3.1
[2009-01-19 22:57:24] INFO ruby 1.8.7 (2008-08-11) [i486-linux]
[2009-01-19 22:57:24] WARN TCPServer Error: Address already in use - bind(2)
/usr/lib/ruby/1.8/webrick/utils.rb:73:in `initialize': Address already in use - bind(2) (Errno::EADDRINUSE)
from /usr/lib/ruby/1.8/webrick/utils.rb:73:in `new'
from /usr/lib/ruby/1.8/webrick/utils.rb:73:in `create_listeners'
def save_offer
@offer = Offer.new(params[:offer])
@offer.offer
@offer.save
end
<div>
<%= error_messages_for 'offer' %>
<fieldset>
<legend>Haga su oferta</legend>
<% form_for :offer, :url => {:action => :save_offer} do |form| %>
<p>
<%= label :offer, :name, "Name:" %>
<%= form.text_field :name, :size => 40%>