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
<p> | |
<b>Name:</b> | |
<%=h @post.name %> | |
</p> | |
<p> | |
<b>Email:</b> | |
<%=h @post.email %> | |
</p> | |
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
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' |
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
def save_offer | |
@offer = Offer.new(params[:offer]) | |
@offer.offer | |
@offer.save | |
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
<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%> |