SEO Friendly URLs in Ruby on Rails - ruby-on-rails

I am completely new to this Framework. Hence, any help is really appreciated. I am developing a website using Ruby on Rails Framework (Currently it is in beta phase); however, there are 2 major issue I am facing
URLs - all the URLs are having #! because of which Search Engines are not crawling and indexing the same
Content on the website is not getting crawled or indexed
Please help.

take a look at the free railscast or a nicer one, but paid
Regarding your content not being indexed or crawled, did you setup proper robots.txt on your server?

Related

How do I let clients edit the page if I created website using react and rails

I have been learning to create websites and very new to react and rails and like the combination between the two so far. So I was wondering what would I have to do to let clients edit the page contents without any coding knowledge. I watched some CMS tutorial videos and saw people using wordpress to achieve this. But I think you would have to have written your website using PHP to use wordpress as a CMS right? Please correct me if I am mistaken. And please suggest any CMS for rails and react. Thank you.
You might want to take a look at our Rails based CMS Scrivito: https://scrivito.com/ - which has also support for JS customiziation.

Creating a marketing front for Rails app

I started to get comfortable with Rails and programming in general. I'm working on a Rails app with basic authorization and authentication. I wish to have a CMS for the landing page, while the core functionality of the website would be in Rails. I've seen that it's very useful to separate the marketing assets from the core app for iterating on the messaging and other content.
My plan is for the landing page to have 3 fields for the signup- Username, email and password, for new users to fill in, which should then be stored in the database and used by the Rails app behind the landing page. I'm thinking of using Wordpress to do so, simply because that's the only CMS I'm comfortable with.
I was wondering how I should go about this? Is this recommended, and if so, would the necessary way to go about it be a Wordpress plugin? (I couldn't narrow it down to a good Rails plugin, so any suggestions would be greatly appreciated) . Are there any alternatives to plugins? Thanks in advance!
Why not using devise gem? Everyone uses that. Its well tested and has tons of useful features. And if its a small app, your own created authentication system might be enough.
And for CMS I would like Wordpress for SEO purposes, and Rails Frog for ease of use
You could use Refinery CMS with or without the Rest API:
http://www.refinerycms.com/
http://www.refinerycms.com/guides/with-an-existing-rails-app
https://github.com/refinerycms-contrib/refinerycms-api

How to fetch and display data from some other ecommerce sites to my website?

I want to get products related data from other ecommerce sites to my website.
its just process like giving specific product url from other ecommerce site to display
that product info in my website.
I am looking for this solution in Ruby On Rails.
Is there any solution with ror ? Please share your ideas If you knew about it.
Thanks in advance.
There are two ways of achieving what you need:
1) Those sites might actually have an API which you can use to get your job done.
2) Scraping those sites. Now, some websites for obvious reasons prohibit such thing so do read their terms. At any rate there are a couple of things you can use for web scraping like Nokogiri. A good screencast to get you started can be found on Railscasts
There are a plethora of options for web scraping, depending what you actually need but get started with Nokogiri and you can then find out more eg Mechanize, a library used for automating interactions with a website. Another screenshot that can be found on Railscasts

Ruby on Rails integrated with Wordpress site

I'm working on an Ruby on Rails exercise listing application (https://rbzexercise.herokuapp.com) and I'm trying to integrate it with a Wordpress site (http://www.rubberbanditz.com). Is there an easy way to do the integration? As you can see, both are pretty established, so I'd really prefer not to have to rewrite either. Right now i'm using a work around that involves an iframe within the page http://rubberbanditz.com/exercise-library/, but we don't get any of the "google juice" from it.
Update:
Based on the comments, I've started looking into integrating the app to exercise.rubberbanditz.com, but following the directions at https://devcenter.heroku.com/articles/custom-domains doesn't seem to be doing the job. when going to exercise.rubberbanditz.com i just automatically get forwarded to the main page. Does anyone have any experience with setting a rails app to a subdomain, and can you point me to a good tutorial?
Thanks for any help!
Jason
Your iframe method is fine, but might lead to seo problems, since all of your links are trapped in the iframe.
Another option would be to take your WordPress theme and rebuild it in your /app/views/layouts/application.html.erb template. Once that's done, make a subdomain (maybe app.rubberbanditz.com or workouts.rubberbanditz.com) and setup your heroku app to use the new subdomain.
Google should view the two subdomains as the same website, especially if you're sharing common navigation elements, and both sites link to each other frequently.
The biggest downside is that now you'll have to update your design in two different places, which can be a huge pain in the ass.
I've used this approach before, running-php-inside-a-rails-app, for running php inside a rails application. Not sure if anything extra will be required for wordpress since I was just rendering a single page.

FAQ Plug-in or Gem for Rails 3?

FAQs seem to be a pretty commonly needed feature in a web application..
but it seems like there are no gems or plugins available for Rails.
Can you recommend a gem or plugin which provides FAQs to a Rails app?
Obviously you could make a simple FAQ very quickly with Rails, but there is much
more functionality that can be added: votes, search, categories, roles,
comments, markup, embedded links, tags, ... just to name a few.
Seems like people are re-inventing the wheel a lot for FAQs
I just published a gem for it.
https://github.com/railscash/how_to
Hope that helps, Its in development phase but we are using it actively. Your comments/feedback will be highly appreciated
I think either using BrowserCMS (http://browsercms.org) or RefineryCMS (http://refinerycms.com/) fits the bill for when you need more generic content pages. I prefer to just use a generic CMS instead of creating a gem/plugin for FAQS as you'll have other pages that could easily be thrown into a CMS engine as well. Saves developer time from having to update mostly static HTML pages.
Absolutely - Check out https://oraguide.com - Everything is streamlined / hosted in the cloud. It runs directly on the page as a floating div.

Resources