Wednesday, 11 January 2017

Food Ordring App Development




Infigic has been one of the top food ordering app development companies for years and is the mobile commerce agency of choice for many businesses across US, UK, Australia, India, and Canada & New Zealand. 

Our mobile commerce app developers work closely with you to develop food ordering app, allowing you to satisfy your customers by getting food delivered without standing in queues or waitlists. 

Build your valuable customer base, while allowing your customers to order food virtually at their availability and convenience. Make your restaurant available to customers’ mobile phones allowing you to increase sales in the restaurant itself as well as online.

Food ordering App features


A feature rich food ordering app that makes user sign in / register with zero trouble.

  • Splash screen with brand logo
  • Login / Register with Email or Facebook
  • Easy swipe navigation with brand logo
  • SMS / Call mobile number authentication
  • 3D touch and touch ID integration

Delivering an effortless shopping experience for users which in turn drives more sales for you.

  • Products navigation from categories & subcategories
  • Shortcut to Repeat last order
  • Product search
  • Product screen popup with description


We develop with customer experiences in mind. Every essential feature has been thought of and incorporated within our feature rich food ordering app so that users can navigate around easily and waste no more time than necessary to order food.
  • My order
  • Favourite products
  • My cart
  • Change account details
  • Promocodes/Referals

Why Infigic ?

Infigic is an ecommerce agency providing solutions on ecommerce development as well as mobile commerce app development. We develop the best out of available resources, designs and platforms so that your customers can feel the experience of shopping without thinking or waiting too long.
Infigic has a vast team of skilled and creative designers and coders who put in all they have to provide clients with exactly with what they want, earning their satisfaction and trust.

How to use cancan in rails?

CanCan is an authorization library for Ruby on Rails which restricts what resource a given user is allowed to access.  All permissions are defined in a single location and not duplicated in controllers, views and database queries.

Step-1        Installation

Gem ‘cancancan’,’~>1.10’

Step-2        When using rails-api,you have to include the controller method for 
CanCan:

   class ApplicationController < ActionController::API
   include CanCan::ControllerAdditions
   End

Step-3        Generate the class:

      Rails g cancan:ability

      Add a new class in app/models/ability.rb with the following contents:
            
      class Ability

      include CanCan::Ability

   def initialize(user)
   End
   End

Step-4        The current user’s permission  can be checked by can?  and cannot?  methods in view and  controller.

  
 <% if can? :update, @article %>
 <%= link_to "Edit", edit_article_path(@article) %>
 <% end %>

The authorize!  method in controller will raise an exception if the user will not be able to perform the given action.

   def show
  @article = Article.find(params[:id])
  authorize! :read, @article
  end

Step-5        Handle Unauthorized Access

If the user authorization fails,a CanCan::AccessDenied  exception will be raised.You can catch this and modify its behavior in the ApplicationController.

class ApplicationController < ActionController::Base
 rescue_from CanCan::AccessDenied do |exception|
 redirect_to root_url, :alert => exception.message
 end
 end
 

 If you have any further doubts, drop us an email at info@infigic.com and we’ll get back to you with the best possible solution. Infigic is a Ruby on Rails Development Company and we are always there to solve your queries.

How to Use Active Admin Gem in Rails?

Active Admin is a framework for creating administration style interfaces. In this blog, I have shared how can you use active admin gem in rails easily.

FIrst and foremost, active admin is released as a Ruby Gem. This gem needs to be installed within a Ruby on Rails 3 application.

H2 - Steps to install and use active admin gem in your ruby on rails application


Step -1

To install, simply add the following to your gemfile:

# Gemfile
                         gem 'activeadmin'

Step 2

If you are using Rails 3.1, you must also include a beta version of MetaSearch and sass-rails:

# Gemfile in Rails >= 3.1
                          gem 'activeadmin'
                          gem 'sass-rails'
                          gem "meta_search", '>= 1.1.0.pre'

Step 3

After updating your bundle, run the installer

$> rails generate active_admin:install

This installer creates an initializer used for configuring defaults used by Active Admin as well as a new folder at app/admin to put all your admin configurations.

Step 4

Migrate your database and start the server using these commands:
       
        $> rake db:migrate
        $> rails server

Step 5

 Visit http://localhost:3000/admin  and log in using:

User: admin@example.com
Password: password



If you have any further doubts, drop us an email at info@infigic.com and we’ll get back to you with the best possible solution. Infigic is a Ruby on Rails Development Company and we are always there to solve your queries.