Muhammad

Joined

4,160 Experience
30 Lessons Completed
1 Question Solved

Activity

I'm creating a content sharing site where the user should be able to share a piece of content in a post form and assign it to a pre-defined category. 

How to create the pre-defined categories with the acts as taggable on gem or even from scratch?
Thanks a lot, Manuel!
Hi guys, I'm having a hard time trying to know how to install GTM in my new rails app. I searched for some time but found nothing to guide me through it!

Posted in How to create a user profile with OmniAuth?!

Hi guys, I want to build an application where users are going to sign up with just their social media profiles and I don't want to use devise, the application should display user profiles with their data and activity feed. I'm following with the activity feed episode but want to know how to create and display the user profile!! 

Posted in Why CKeditor is not working in production?!

Hi Simon, I don't even understand what you've said, I'm kinda new to all of that! 😂 but I managed to make it work. After this error I wasn't able to upload images using carrierwave with ckeditor but this was because I didn't install image magic on the server so after I installed it everything went fine. github repo if you want to take a look at anything: https://github.com/Muhammad-Ebrahim/blog

Posted in Why CKeditor is not working in production?!

Hi guys, I'm using CK editor in my rails 5 app and when I deoployed it on Digital Ocean and the editor doesn't load with this error in the console.

ReferenceError: CKEDITOR is not defined

is there anyone using CKeditor here?!

Posted in How to integrate mailgun in a rails app

Hi guys, I have a newsletter form where I collect the email of my users and I want to send the mails to mailgun to send them emails. how can I do that?!

Posted in Markdown/Emoji : how to host images?

Hi @chris, I'm having hard time figuring out how to host the folder in my app. should I install the npm package from here https://github.com/HenrikJoreteg/emoji-images in my app?!

Posted in Repost / Retweet / Reblog Discussion

Hi Chris, Great tutorial! I was wondering how to setup liking posts when I don't have any user records. Assuming I want to setup it for my blog and for sure I'm going to be the only user so how could I implement it?!

@hafidz And how could I store the user device so they don't like it tiwce or something like that?!

Hi, I have a side project where I don't want visitors to make accounts because it is just a collection of posts but I want them to be able to like posts.

Posted in How can I setup Vim for rails development on Ubuntu?!

You're absolutely right!

This is how my zshrc file looks like now:

# If you come from bash you might have to change your $PATH.
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"

Thanks a lot Chris for your time!

Posted in How can I setup Vim for rails development on Ubuntu?!

Thanks @chris, This helps a lot, one more thing though!
I'm sufring with oh my zsh with a weird error, when I run any rails command I get this error:

_rails_command:10: command not found: rails

wait it gets better, When I write exec bash and get back to exec zsh it works perfectly

I don't understand why is that!!

Posted in How can I setup Vim for rails development on Ubuntu?!

Hey guys, Lately I have been trying to switch to Vim but I couldn't because It's kinda complicated. Most of the dotfiles I found were built to setup on a Mac so I'm curious if anyone here is workin with Vim on Ubuntu?!

I'm trying to build a blog & portfolio app using rails and I want to add tags to make the content organized, I'm trying to add acts_as_taggable_on but I'm struggling with it so I thought I might ask you guys! Thanks in advance.