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 […]
Tag Archives: code
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 […]
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 […]
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 […]
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 […]
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.
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.