Tag Archives: code

Laying out the Building Blocks to get Started

In this tutorial, I am endeavouring to get the base of my app looking how I would like it, so I can create an initial building block to start from. It will enable me to complete models as I go. 1. Following my previous tutorial, I will begin setting up the layout files for my […]


My Budget App – Adding more partials

Keep watching to see how I build My budgeting app. What are partials? Partials in rails are views which enable you to create layouts with multiple content sections. I am going to nest three content partial views within the right hand column (also a partial) of my app to render a budgets summary section which will […]


My Budget App – customise and migrate new models backed by posgreSQL

In this example I will be using rake and Active Record Migrations to create a new income model backed by a posgreSQL database. -First I’ll need to ensure I have included postgreSQL PostgreSQL is the default database on Mac OS X Server as of version 10.7. The standard version of Mac OS X includes only the […]


My Budget – generate new income controller and view with rails generate

Now that I have successfully created a model and migrated a database for income, it’s time to create an income controller and view to be able to access that information visually. The following terminal command will generate a new controller called “income_controller.rb” under app/controllers $ bin/rails generate controller Income As you can see, I have […]


My Budget Tutorial 7 – Form to Create & Update New Fields in the DB

Database Table: In my app/db/migrate it shows what information can be set in the income table. It also shows that all fields must be filled in for the form to be submitted.Views: First, I’m going to create an _incomes_form.html.erb partial is a data entry form which will allow me to input data regarding income information and then […]


Adam Silverstein: Put a Little Backbone in Your WordPress!

Backbone (and Underscore!) are bundled with WordPress – explore how you can leverage their power to deliver complex user experiences while keeping your code organized and maintainable.
First, we will explore why Backbone is awesome, and what it lets you create is amazing! We will look at some examples of where and how it is used to power web apps and increasingly large areas of the WordPress dashboard. Seeing these incredible user experiences built in Backbone will help get you excited about using Backbone in your next project.
Next, we will dig into Backbone fundamentals to get a crystal clear understanding of the fundamental concepts underlying Backbone applications: Models, Views and Collections. We’ll look at how these tie to templates, events and routes for rendering, interaction and state handling. We discuss using Backbone in themes and plugins: how to include Backbone, how to interact with the back end to get and put data, including using the new WP REST API. We will cover WordPress specific helper functions that help our Backbone projects.
Finally, we will explore several very simple Backbone applications that demonstrate interacting with WordPress using the Rest API.


How to generate different sql scripts through pom.xml

In this post, we will see how to generate different sql scripts using our pom.xml from maven project with a little help from hibernate.