squeezer 0.1.7 → 0.1.11

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.7
1
+ 0.1.11
@@ -1,5 +1,12 @@
1
- - form_for @blog, :html => { :multipart => true } do |f|
2
- = f.error_messages
1
+ = form_for @blog do |f|
2
+ .ui-widget.ui-widget-content
3
+ - if @blog.errors.any?
4
+ #error_explanation
5
+ %h2="#{pluralize(@blog.errors.count, 'error')} prohibited this entry from being saved:"
6
+
7
+ %ul
8
+ - @blog.errors.full_messages.each do |msg|
9
+ %li= msg
3
10
  %p
4
11
  = f.label :title
5
12
  %br
@@ -4,5 +4,3 @@
4
4
  = link_to "New Blog", new_blog_path
5
5
  - for blog in @blogs
6
6
  =render :partial=>'entry',:locals=>{:blog=>blog}
7
-
8
-
@@ -1,5 +1,12 @@
1
1
  - form_for @page do |f|
2
- = f.error_messages
2
+ .ui-widget.ui-widget-content
3
+ - if @page.errors.any?
4
+ #error_explanation
5
+ %h2="#{pluralize(@page.errors.count, 'error')} prohibited this entry from being saved:"
6
+
7
+ %ul
8
+ - @page.errors.full_messages.each do |msg|
9
+ %li= msg
3
10
  %p
4
11
  = f.label :title
5
12
  %br
@@ -1,9 +1,15 @@
1
1
  - form_for(@role) do |f|
2
- = f.error_messages
3
-
4
- %p
5
- = f.label :name
6
- %br
7
- = f.text_field :name
8
- %p
9
- = f.submit 'Create'
2
+ .ui-widget-content
3
+ - if @role.errors.any?
4
+ #error_explanation
5
+ %h2="#{pluralize(@role.errors.count, 'error')} prohibited this entry from being saved:"
6
+
7
+ %ul
8
+ - @role.errors.full_messages.each do |msg|
9
+ %li= msg
10
+ %p
11
+ = f.label :name
12
+ %br
13
+ = f.text_field :name
14
+ %p
15
+ = f.submit 'Create'
@@ -1,7 +1,7 @@
1
- %h1 Editing role
1
+ %h1.ui-widget-header Editing role
2
2
 
3
3
  = render :partial => 'form'
4
4
 
5
5
  = link_to 'Show', @role
6
6
  |
7
- = link_to 'Back', roles_path
7
+ = link_to 'Back', roles_path
@@ -1,19 +1,19 @@
1
- %h2 Listing roles
2
-
3
- %table{:class=>'mytable'}
4
- %tr
5
- %th Name
6
- %th Descripcion
7
-
8
- - @roles.each do |role|
1
+ %h2.ui-widget-header Listing roles
2
+ .ui-widget-content
3
+ %table{:class=>'mytable'}
9
4
  %tr
10
- %td
11
- = link_to role.name, role
12
- %td
13
- = role.desc
14
- %td
15
- = link_to 'Edit', edit_role_path(role)
16
- %td
17
- = link_to 'Destroy', role, :confirm => 'Are you sure?', :method => :delete
18
- %br
19
- = link_to 'New role', new_role_path
5
+ %th Name
6
+ %th Descripcion
7
+
8
+ - @roles.each do |role|
9
+ %tr
10
+ %td
11
+ = link_to role.name, role
12
+ %td
13
+ = role.desc
14
+ %td
15
+ = link_to 'Edit', edit_role_path(role)
16
+ %td
17
+ = link_to 'Destroy', role, :confirm => 'Are you sure?', :method => :delete
18
+ %br
19
+ = link_to 'New role', new_role_path
@@ -1,5 +1,5 @@
1
- %h2 New role
1
+ %h2.ui-widget-header New role
2
2
 
3
3
  = render :partial => 'form'
4
4
 
5
- = link_to 'Back', roles_path
5
+ = link_to 'Back', roles_path
@@ -2,7 +2,14 @@
2
2
  %h2 Informacion del sitio
3
3
 
4
4
  - form_for (@site), :html => { :multipart => true } do |f|
5
- = f.error_messages
5
+ .ui-widget.ui-widget-content
6
+ - if @site.errors.any?
7
+ #error_explanation
8
+ %h2="#{pluralize(@site.errors.count, 'error')} prohibited this entry from being saved:"
9
+
10
+ %ul
11
+ - @site.errors.full_messages.each do |msg|
12
+ %li= msg
6
13
 
7
14
  %p
8
15
  = f.label :'Nombre*'
@@ -39,4 +46,4 @@
39
46
  = f.select :style, @files
40
47
 
41
48
  %p
42
- = f.submit 'Update'
49
+ = f.submit 'Update'
@@ -1,5 +1,13 @@
1
- - for user in @users
2
- %p
3
- =user.username
4
- -if can? :roles, user
5
- =link_to "Permisos", {:action=>:roles,:id=>user.id}
1
+ %h2.ui-widget-header Users
2
+ .ui-widget-content
3
+ %table
4
+ %tr
5
+ %th Nombre
6
+ %th Permisos
7
+ - for user in @users
8
+ %tr
9
+ %td
10
+ %b=user.username
11
+ %td
12
+ -if can? :roles, user
13
+ =link_to "Permisos", {:action=>:roles,:id=>user.id}
@@ -1,14 +1,15 @@
1
- %b
2
- usuario:
3
- =@user.username
4
- %br
5
- %b
6
- Permisos
7
- - form_for @user, do |f|
8
- %p
9
- - for role in Role.find(:all)
10
- %div
11
- = check_box_tag "user[role_ids][]",role.id, @user.roles.include?(role)
12
- = role.name
13
-
14
- %p= f.submit "Update"
1
+ .ui-widget-content
2
+ %b
3
+ usuario:
4
+ =@user.username
5
+ %br
6
+
7
+ %h3 Permisos
8
+ - form_for @user, do |f|
9
+ %p
10
+ - for role in Role.find(:all)
11
+ %div
12
+ = check_box_tag "user[role_ids][]",role.id, @user.roles.include?(role)
13
+ = role.name
14
+
15
+ %p= f.submit "Update"
data/lib/squeezer.rb CHANGED
@@ -1,3 +1,4 @@
1
- class Engine < Rails::Engine
2
- engine_name :squeezer
1
+ module Squeezer
2
+ class Engine < Rails::Engine
3
+ end
3
4
  end
data/squeezer.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{squeezer}
8
- s.version = "0.1.7"
8
+ s.version = "0.1.11"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Oldani Pablo"]
12
- s.date = %q{2010-12-26}
12
+ s.date = %q{2011-02-07}
13
13
  s.description = %q{an appliaction ready to run}
14
14
  s.email = %q{magicche@hotmail.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 7
9
- version: 0.1.7
8
+ - 11
9
+ version: 0.1.11
10
10
  platform: ruby
11
11
  authors:
12
12
  - Oldani Pablo
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-12-26 00:00:00 -03:00
17
+ date: 2011-02-07 00:00:00 -03:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -483,7 +483,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
483
483
  requirements:
484
484
  - - ">="
485
485
  - !ruby/object:Gem::Version
486
- hash: 572627757
486
+ hash: 494515437
487
487
  segments:
488
488
  - 0
489
489
  version: "0"