This is by far the most popular structure used by any web application.

To have ‘admin’ in sub-folder using to manage the administrative information.

Such as we have ‘category’ model, and we want to manage the scaffold in www.myrailsapp.com/admin/categories instead of www.myrailsapp.com/categories

Too bad, the generators provided by RoR didn’t included this.

Here are the steps you need to do this practices.

  • Generate a blank controller named ‘admin/categories’. (mentioned that it is ‘categories’, you have to manually ‘s’ it.)
  • Generate a scaffold ‘category’, the model ‘category’ will be generated while the ‘categories_controller’ and related views will be generated too.
  • Move all functions from ‘categories_controller’ to ‘admin/categories_controller’.
  • Delete ‘categories_controller’.
  • Move all views from ‘views/categories’ to ‘views/admin/categories’.
  • Delete the folder ‘views/categories’.
  • Edit the routes.rb and add this line :
    namespace :admin do resources :categories end
  • Edit the ‘admin/categories_controller’, modify the redirect_to to specify the namespace being used like this :
    redirect_to([:admin,@category], ...)
  • Edit the ‘admin/categories_controller’, modify the categories_url to admin_categories_url.
  • Now edit all views, do the same with link_to, if you found @categoy, just add :admin to specify the namespace.
  • Do the same in all views, change xxx_categories_path to xxx_admin_categories_path.
  • Then modify the form view, change from form_for(@category) to form_for([:admin,@category]).

It will works now.

Also, if the Destroy action didn’t work, didn’t popup a confirm message, please include the bundled ‘prototype.js’ and ‘rails.js’ into your template too.

Hope this help.

 

Tagged with:
 

Yup, this is the problem #2 of Ruby on Rails which I want to jot down into my blog.

It is an error message showing after I’ve executed ‘rails new …’ (yo, when attempting to create new rails application)

Problem : Error message is undefined command ‘task’.

Reason

This is somewhat a bug in rake 0.9.0 from what I’ve observe this problem over Google.

Solution

Simple by adding this piece of code…

module ::AppName
class Application
include Rake::DSL
end
end

module ::RakeFileUtils
extend Rake::FileUtilsExt
end

between the line…


require 'rake'

and


AppName::Application.load_tasks

Hope this help!

Tagged with:
 

Well, I just want to write a quick short post here about the problem I’m facing when beginning with Ruby on Rails on Windows while I didn’t found this problem when I’m riding Ruby on Rails on Mac OSX.

Problem #1 : error message when the database gems were installed but not required binaries. (sqlite3, mysql or else…)

Reason

This is just because you don’t have the required binaries for those database in the correct place.

Solution

Easy, just download the binaries of those database and put it into c:\Ruby192\bin folder or your ruby’s bin folder.

For sqlite3_ruby gem -> you need sqlite3.dll

For mysql gem -> you need libmysql.dll

Sqlite website allow you to download on compiled binaries, I’m not sure about mysql but I just copy the libmysql.dll from wamp/mysql/bin folder.

Hope this help.

Tagged with:
 

Hi friends,

I’m not going to make this post SEO well-written. Just want to make a quick short share about NicheReaper which is claim as one of the great Keyword Research tool for niche marketers.

I also got many emails from big names who almost enjoy promoting this service probably because it has a strong potential to generate passive income commission which is 60% of the $69 for the first month and 40% on the next months. It is by far one of the best affiliate program I found on earth. (I didn’t post about commissions from 2 upsells and 1 down sell yet.)

However, what made me very interesting about NicheReaper is that my most respected marketer is promoting it as he never promotes suck products for a long time.

So, I join in immediately since yesterday.

Today I’m going to share with you the first experience of mine on NicheReaper after about 18 hours of purchase.

What is NicheReaper?

What type of problems it try to solve?

Quick and short, NicheReaper try to solve the problem most niche marketers are facing even they are newcomers or the experienced one.

Yup, it is niche/keyword research.

Do you tired finding a new niche to market by…

- Visit some news site to see what niche is interesting

- Extract keywords related to the chosen niche

- Do competitive intelligence to see if you can dominate or share the profit which is includes checking these parameters, AdWords CPC, Search volume, Competitor’s PageRank, Backlinks check

- If it is good to go, you have to do more by finding a good domain name to easily dominate the niche

Sounds very familiar right? It is a standard process of doing niche marketing. Smile

NicheReaper is designed to do all of the above process for you and it is doing automatically.

What I think NicheReaper is standing out from other keyword research tools is that it is automatically research new niches/keywords everyday, actually, every minutes because you can see new keywords coming in the system lively.

Haha, like watching stock. Smile

From the first day, I think NicheReaper is great but what I’m wondering is…

Does NicheReaper worth $69/month?

The main point made me wonder is that NicheReaper is using Phrase Match Type for search volume, yes, I written it correct, Phrase Match not Exact Match which I never experiences with it in my own niche marketing.

I always use Exact Match in the pass, but I saw in the forum from Matt, the co-founder of NicheReaper that Exact Match will produce virtually zero opportunity right now which I almost agreed with him.

I will share you guys in the next week after I’ve more experienced with NicheReaper, also, I will share here the result from trying to market a niche by using Phrase Match instead of Exact Match.

Keep visit here to update.

PS. I’m an active user of the following keyword research tools…

- Market Samurai : The best tool for detailed research!

- Brad Callen’s Niche Finder : The best tool for quick research and identify the profitable niche!

- NicheReaper : The best tool like Niche Finder but I can have virtually nothing in my brain to use it. Open-mouthed smile

First of all, let me say that I don’t want to blame anyone or any Internet marketing courses.

I found a lot of Internet marketing courses didn’t BOLD this topic enough to make newbies understand what’s the most important task if they are going to make money on niche marketing.

The bad thing is… they will never know they failed on this task and this task almost decide whether you will success on your niche marketing or not.

Yes, it is ‘keyword research‘.

Sounds simple, easy, but are you sure you know it at all?

I’m sharing this because, when I’m entering into the niche marketing era. I’ve tried many niche markets with failed results.

Luckily, I didn’t given up with it and later I found out why I had to ‘failed’.

My problem is the keyword research task.

If you have done keyword research the right way, you probably win in 60% rate.

The great thing is that the remaining 40%, you can do it later, any time. :)

What’s the right way to do keyword research?

There is only one rule, using the data from Google AdWords Keyword Tool with EXACT match option!

You can use the tool on Google website or it can be any other 3rd party application, just to make sure it query search data from Google AdWords.

Here is the step.

Normally, you just type your niche market keyword into the keyword box.

Keyword Research

And normally here is the result which looks promising… (5,400/month for me is good enough if this is niche marketing website)

Keyword Research

Anyway, this is unusable for me and it is not truly been searched 5,400/month because the default matching option of the tool is Broad match and Broad match will never drive you a laser targeted traffic!

You have to change the option to use Exact matching option. (It is on the left side)

Keyword Research

Then, the result will refresh look like this…

Keyword research

Here is a measurable statistics for niche marketers who is targeting for the keyword “workout plans for weight loss”.

Yes, the truly search volume is only 880/month for this keyword, it is not 5,400/month.

So, if you are doing niche marketing, you 100% don’t want to waste your time with this keyword.

Just find a better one with this right keyword research method. :)

I’m just write here a list of top reasons why I’ve failed on a goal I would like to do.

Just for being used to remind myself not to fail again.

Top reasons made me failed.

  • Discipline – I always failed because of my discipline. Hard to resolve! Must commitment with myself seriously.
  • Short power of self motivation – I found when I have a strong motivation power, I can work good, produced a great result, good emotion, attitude and very quickly! However, I just can’t maintain my motivation power, when I lose it, I probably 90% failed on the goal. To resolve this, I’m trying to split big goal into a few numbers of smaller goals with its own motivation point. I’ll share if I can success with this or not.

I don’t think there are any other reasons to make me fail, the root cause should come from these two reasons only and I’m getting hard to resolve it quickly.

What I think is that many people also failed with the same reasons of mine.

Actually, here is the level of entrepreneurs I believe it consists of…

- Low level entrepreneurship : The main problem of this level are… they feel safety when get paid monthly, don’t want to responsible for their own life. The main problem actually is their mindset.

- Medium level entrepreneurship : Gambler, this type of people want to take care their life with themselves, but they have a problem same as me. Discipline and motivation, also, they usually lack of business strategy to grow their own business.

- High level entrepreneurship : Success peoples are this, they always have a strong discipline, more strictly discipline they followed, they feel more motivated! I’ll try myself to be this in one day.

Yup, getting back to resolve my discipline and motivation problem first! :)

Will share with the resolution I can win over these two reasons when I’ve a winning rate 80/20. :)

Cheers,

Have you heard “This requires you to do a manual work to produce a good result”?

If you’ve heard it very often, let me guess, you are in Internet marketing niche. Right?

And the truth about Google is that, Google hates the automation tool, and will penalize all activities that automated.

Good for Google because almost 90% of automation tools will produce a junk on the Internet.

So, do something manually is worth your effort.

Yo, it’s correct but actually this is non sense for techie guy like me.

I’ve graduated on Computer Science, I’m a certified professional from Microsoft and I’m a top gun programmer.

My primary objective being a programmer is to turn the manual tasks into automation as much as possible.

Yes, it will reduce the time taken and my clients will have more time to spend what make sense for them to do. Not foolish labor manual tasks.

Directory submission,

Article submission,

Social bookmarking,

Account registration,

Oh god, a lot of foolish things to do in Internet marketing right?

How can I live with those stupid tasks?

Automation tools

The Solution

Luckily, techie guys found a solution, they can made those manually labor tasks into a ‘semi-automated’ tool.

Actually, it is 99.99% manually, but it likes you have an assistant with you and move the mouse, click, typing, and click for you.

The result will be 100% produced by human and Google will never know this.

Yes, it is some what called Macro, Macro recording or the same.

Now it is the trend that guru made this type of semi-auto tool and trying to sell a service like manual directory submission into 1,000 directories.

And actually, they did with these macro without using the real human.

If you got the point, you can turn your day-to-day labor tasks into a money making service as well.

I’m working on it too. :)

Tagged with:
 

Yes, finally, it came, WordPress 3.1

Have you checked your email last night?

Yup, WordPress 3.1 was released and I just upgraded my personal blog to see if it is worth to upgrade my all existing money making blogs or not.

I’ve summarized some good point after upgraded to WordPress 3.1 here to let you know what’s new is WordPress 3.1.

What’s new in WordPress 3.1 for money making blogger?

  • Internal linking browser – if you would like to link to your existing content such as a specific post or page, you can browse it.

WordPress 3.1 Changes

  • More working space on writing interface – many unnecessary buttons, menus have been hidden in the “Screen Options” at the top right side

WordPress 3.1 Changes

  • Many great features for plug-in, theme developers
  • Some cool features for WordPress Multisite

Is it worth for you to spend a time to upgrade all your money making blogs to WordPress 3.1?

Honestly and personally, my answer is ‘no’.

Why?

- Too few changes made for blogger to help increasing their productivity.

- Risk is too high if your money making blog is in production, can you accept the risk that some plug-ins and themes might break your blog after upgrade to WordPress 3.1?

Anyway, if my blog is for fun, I will definitely upgrade it asap.

Hope this help,

Tagged with:
 

ร้องเพราะมากๆครับ ชอบกว่า original version อีกครับ

My personal single page WordPress Guide

So finally, you have chosen WordPress over Joomla, BlogEngine and etc… as your core software for your online business website.

I’m going to describe a quick short on the benefits of WordPress over those CMS.

Yeah, I call this as my personal WordPress guide. :)

Wordpress Guide

Let’s begin the WordPress Guide with FAQ

What are the differences between WordPress and other CMS softwares?

- WordPress is originally built as a Blog, not CMS. So, the features will be less than other true CMS software.

Does this mean WordPress was limited and you will unable to scale your website up?

- Originally, yes, but if you know a good resources about WordPress plug-ins, you can do anythings you want like those other CMS software. WordPress is so flexible for extendability.

Does WordPress fit for me?

- Almost time, it is YES, or if you are a some type of technology geek and want over bloated features.

What do I need to do if I want to start my own online business website?

- This is easy, it is a proven steps and made many bloggers succeeded, just follow the below steps.

  • Setup your own WordPress blog through Fantastico or depends on your hosting control panel.
  • Find some good theme for your niche, commercial theme is great. If you would like to see popular theme/template resources, you can click here.
  • Plan what you would like your blog to do like all posts can be shared through Facebook, social bookmarking, make some great looking gallery. Then find the plug-ins that capable and install.
  • The essential for online business is list building, my WordPress guide mainly focus on this. Here is a good free WordPress opt-in plug-in.
  • Don’t forget to register for free account of Google Analytics and install the code in your blog through some plug-in.
  • Test and see if your blog is working all perfectly. I don’t think you need to put some monetize area now.
  • It’s time to get some real traffic. What can you do? This is easy too, for beginning, try to do some keyword research but make sure it is long tail and has low competitive. Try to get some few 3 phrases keyword.
  • Write a post with keyword driven technique, repeat the keywords about 4-6 times in your post. Make some of them <h1>, <h2>, <h3>, <strong>, <b>, <i>
  • Put some image in your post with ALT attribute as your keyword.
  • Now wait for 6 hours to 2 days to get Google index your site, post. Believe me that, you don’t need to do any work to make it indexed, WordPress do this itself very good.
  • Track your ranking of the keyword, when you know your rank, grab the URL that have been indexed and ranked.
  • Create some backlinks to the URL you grabbed.
  • Track your ranking, make more backlinks…
  • Repeat until it ranks on the 1st page, top 5.
  • Research more keywords and repeat until each keyword got ranked in the 1st page, top 5.
  • Repeat… until your blog get PageRank 5, now Google will almost automatically drive some related traffic to your blog.
  • It’s time to monetize, use the approach you want like Ad area selling, CPA, affiliate marketing or else…

This can be done and made money for me since 2009 to now!

The problem I saw from my clients is only they don’t take action.

Hope you get success with my personal single page WordPress guide.

If you found that this WordPress guide interesting, please share this post on your Facebook or make a Facebook comments at the below of this post. :)

Ended of my single page WordPress Guide.

Tagged with:
 

Looking for something?

Use the form below to search the site:


Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...

reverse phone lookupTattoo DesignsSEO