ArchivesPosts Tagged ‘Web’

28Nov

So I’m working on a project and obviously I wanted to take advantage of the built in AJAX in rails using UJS. I for some reason couldn’t find a good tutorial on how to do it so I figured I would just write one instead. Here’s the basics of how I solved it. I’m going to assume a couple of things to start so that this tutorial stays within scope.Continue Reading

29Oct

So I had a small issue the other day learning how to add a link to an image so I figure I would share with everyone on how I accomplished it. The key is that the link_to object can take a block and then you can add an image to the block like this:Continue Reading

13Aug

So you’re using Zend and you must be thinking, there has to be an easy way to authenticate users! Well, you can use Zend Auth and it makes it pretty damn easy. The basic concept is that it assumes that you have a combination of either a username/password, email/password or a combination of the two to authenticate your users. If you have something other than those combinations you may want to look at extending Zend_Auth instead of directly using it(that however it outside the scope of this tutorial). First off this tutorial assumes a couple things. One, that you know about the standard Zend Directory structure and two, that you have already setup a login form and are now working on authenticating the user. We’ll start off in the index action of your LoginController. That way you have the url as /login. First off we’ll check if the request is a post request:Continue Reading

30Apr

I recently got Zend Framework up and running on Media Temple’s grid service. Turns out this isn’t as easy as I originally thought. In order to get it to work properly i needed to add the following to the .htaccess file in the root of my domain directory.Continue Reading