Skip to content
DAddYE edited this page Sep 12, 2010 · 22 revisions

Lipsiadmin

Lipsiadmin is a new revolutionary admin for your projects.

Is developped by http://www.lipsiasoft.com that use it from 1 year in production enviroments.

Lipsiadmin is based on Ext Js 2.0. framework (with prototype adapter) and is ready for Rails 2.0.

This admin is for newbie developper but also for experts, is not entirely written in javascript because the aim of developper wose build in a agile way web/site apps so we use extjs in a new intelligent way a mixin of “old” html and new ajax functions, for example ext manage the layout of page, grids, tree and errors, but form are in html code.


Current revision is 0.9 updated at 8 April 2008

Show Cases

I make some examples screens of ours production applications see our ShowCases

Demo Admin is here User:info@lipsiasoft.com Pwd:admin

Demo App is can be download here

Howtos

We daily put some howtos here

Documentation of plugins

We have some documentations of 3rd party plugins and our plugins here

Remember

Remeber to register and help us submitting bugs and request.

Rember for any question our forum

Contribute reporting bug or new fatures in our issues tracker

Overview

  • Can manage admin and site accounts (with activations and mailer)
  • Flexible
  • Easy to use
  • Fast, very fast to use
  • Most used plugin included in bundle
  • Full ExtJS and Rest support
  • Better look for your eyes
  • Scaffolded action, and views (with live search in each list, and scaffold manage/upload image)
  • Client-Side pagination
  • Live Search (Client-Side)
  • File Upload (new)

Installation

Lipsiadmin is very simple to install use.


MacBook:rails DAddYE$ rails demoadmin
MacBook:rails DAddYE$ cd demoadmin/
MacBook:demoadmin DAddYE$ script/plugin install http://svn.lipsiasoft.com/lipsiadmin
MacBook:demoadmin DAddYE$ script/generate lipsiadmin
MacBook:demoadmin DAddYE$ mate db/migrate/001_create_accounts.rb

Edit the migrations adding your first account data.
If you don’t do that you can’t get the email with the required activation code.


MacBook:demoadmin DAddYE$ mate config/config.yml  

Remeber to edit also config.yml with your mail addres and your url of your site.


MacBook:demoadmin DAddYE$ rake db:create
MacBook:demoadmin DAddYE$ rake db:migrate
MacBook:demoadmin DAddYE$ script/server 

Yes!! That’s all your admin is ready to use!

For a correct functions of the grid you need to edit application.rb and comment the line:


  # protect_from_forgery # :secret => '8ac508d8e61e18257211693a77f1623f'

How to use

Now for example we want to create a new model for our articles.


MacBook:demoadmin DAddYE$ script/generate model article
MacBook:demoadmin DAddYE$ mate db/migrate/004_create_articles.rb

Edit the new migration like that:


class CreateArticles < ActiveRecord::Migration
  def self.up
    create_table :articles do |t|
      t.string      :title, :tags
      t.text        :description, :description_short
      t.timestamps
    end
  end

  def self.down
    drop_table :articles
  end
end

MacBook:demoadmin DAddYE$ script/generate attachment article image

This will create


class AddAttachmentsImageToArtilce < ActiveRecord::Migration
  def self.up
    add_column :articles, :image_file_name, :string
    add_column :articles, :image_content_type, :string
    add_column :articles, :image_file_size, :integer
  end

  def self.down
    remove_column :articles, :image_file_name
    remove_column :articles, :image_content_type
    remove_column :articles, :image_file_size
  end
end

Now edit your model


class Article < ActiveRecord::Base
  has_attached_file :image, :styles => { :thumb => "128x128" }
  validates_attachment_presence :image
end

MacBook:demoadmin DAddYE$ rake db:migrate
MacBook:demoadmin DAddYE$ mate config/routes.rb 

Now we simply ad a new restfull resource:


 map.namespace(:backend, :path_prefix => :admin) do |backend|
    backend.resources :accounts, :collection => { :list => :any }
    backend.resources :articles, :collection => { :list => :any } # Added a the new Articles route
    backend.resources :sessions
  end

Now we can generate the new admin pages with support for images.


MacBook:demoadmin DAddYE$ script/generate lipsiadmin_page article -i image

Okey ready? Stop and restart webrick! And go in your menu section and add some menus like the image bottom:

Login: info@lipsiasoft.com
Password: admin

Clone this wiki locally