Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##rendered html
- <form method="post" action="/call_logs/#<CallLog:0x256d2ac>">
- ##new.html.erb
- <div id="call_log_form">
- <%= form_for :call_log do %>
- <%= text_field :logged_by, :label => "First Name" %>
- <%= submit "Create" %>
- <% end =%>
- </div>
- ##CallLogs controller
- class CallLogs < Application
- layout 'call_logs'
- def index
- render
- end
- def new
- @call_log = CallLog.new
- Merb.logger.debug("#{@call_log.id}")
- render
- end
- def create
- end
- end
Add Comment
Please, Sign In to add comment