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
<h1>Editing coupon</h1> | |
<%= form_for(@coupon, :html => {:multipart => true}) do |f| %> | |
<% if @coupon.errors.any? %> | |
<div id="error_explanation"> | |
<h2><%= pluralize(@coupon.errors.count, "error") %> prohibited this coupon from being saved:</h2> | |
<ul> | |
<% @coupon.errors.full_messages.each do |msg| %> | |
<li><%= msg %></li> | |
<% 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
class Party < ActiveRecord::Base | |
attr_accessible :dateCreated, :lastUpdate, :tempForUpdate, :type | |
end | |
>>>>>>>>>> | |
class Project < Party | |
attr_accessible :country, :department, :email, :firstName, :lastName, :location, :mobilePhone, :title | |
end | |
>>>>>>>>>>>> | |
class ProjectsController < ApplicationController | |
def save |