Skip to content

Instantly share code, notes, and snippets.

def create
@ipoint = current_user.ipoints.build(params[:ipoint])
if @ipoint.save
flash[:notice] = 'Ipoint was successfully created.'
redirect_to(@ipoint)
else
flash[:notice] = 'There was an issue while saving the Ipoint'
render :action => "new"
end
end
class Ipoint < ActiveRecord::Base
belongs_to :user
has_attached_file :photo
validates_attachment_presence :photo
end
<% form_for :ipoint, :html => { :multipart => true }, :url => { :action => "create" } do |f| %>
<%= f.error_messages %>
<p>
<%= f.label :name %><br />
<%= f.text_field :name %>
</p>
<p>
<%= f.label :description %><br />
valakirka@miskatonic:~$ rake gems:install
gem install <gem> --source http://gems.github.com
WARNING: Installing to ~/.gem since /Library/Ruby/Gems/1.8 and
/usr/bin aren't both writable.
WARNING: You don't have ~/.gem/ruby/1.8/bin in your PATH,
gem executables will not run.
Successfully installed <gem>
1 gem installed
GeoArch - Required Features 1.0
------------
* Users can create an account, and login into the application to obtain some extra features
* Users can add new info about an interesting architechtural points (name, description, photos, location)
* Users can view info added by themselves or by other users
* Users can edit (change, delete) info added by themselves
Toronto List
============
Clothes
-------
* Vestido rayas naranja/rosa/granate
* Vestido gris bolsillos
* Vestido negro corazones
* Vestido negro lino