[Meddle CMS Update] Where is it? What happened?

[Meddle CMS Update] Where is it? What happened?

For starters: I have not abandoned my Meddle CMS project. I just kind of forgot about it. But I plan to continue working on it and plan to continue writing about my progress. However, I’d like to change direction on how I share my development process.

As dedicated readers might know, I am not a book-learning kind of guy. I find videos and practical learning to be far better tools for me, and that is a personal preference. So what I would like to start doing is making videos about my development process. I haven’t decide how to go about this just yet, ut I would like to make a plan and start doing regular development and content around MeddleCMS for mid to late January.

I will not be moving fully to videos though, and I will still write updates about the program, but I hope the written work and videos will go alongside each other.

Keep in mind, I am learning with every step, as any good developer should. Everything is by trial-and-error. There will be mistakes, there will be blood, sweat and tears. Okay, maybe not.

Stay tuned for more info later on down the line, until then, Happy Coding!

Sincerely,

Joseph William Hays

[Meddle CMS Dev Log] Finally, success! Sort of…

Last Commit: To be updated, I haven’t had a chance to push yet!

After two excruciating weeks of trial and error, reading and re-reading through my code and pulling out my hair, I finally figured out the problem. Well, actually I didn’t figure it out, I asked for the help of an amazing coder and my mentor, Andrew Kalek. He showed me something that blew my mind and made me hate myself for not seeing it sooner. It was a simple /. Yup, that’s the big piece that was missing. Let’s recap, shall we?

Would you like to keep reading?

[Meddle CMS Dev Log] Routing errors impeding progress…

Commit: None

I haven’t pushed a commit as of yet because it seems I’m having issues with the current feature I’m working on. That feature is to Show pages with a "http://root/slug" formatted URL. Why is this proving difficult? Routing.

Routing errors may be a misnomer, but it so far seems to be the issue with my application. In our routes.rb file, I have Cms::Pages scoped under admin. My goal is to have every CRUD action with the exception of Read to be read in our path as /admin/cms/pages/page-slug, but it seems to cause an issue when using another controller to call on a Cms::Page record. Because Reading pages shouldn’t be an admin related task, I’ve created another controller to Show the pages, a controller that isn’t namespaced at all. And yet, ActiveRecord insists I’m experiencing a RECORD NOT FOUND error. In our Pages controller I have:

def show
@page = ::Cms::Page(params[:id])
end

The ::Cms reportedly instructs rails to search for a record from top-level. Any suggestions?

I have no solution as of yet, but will update soon when I have better information.

[Meddle CMS Dev Log] First two commits: setup, setup and setup!

Welcome to Meddle Dev Log! As I work on my new project meddle, I’ll be documenting my work here, for other junior developers like myself to follow along. However, I am no position to write a tutorial, there will be blood, sweat and tears, and by NO MEANS should anyone consider this project a step-by-step to making a rails app. However, I encourage anyone interested to work with me, either by reading along while making your own app, or making improvements and submitting pull requests to our github repo.¬†Or you can follow along and watch me break down when I can’t find the error on line 45 of app/controllers/pages_controller.rb, DAMMIT!

Well, that’s the gist of it, pun intended. So let’s get started!

Would you like to keep reading?