Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
Can anyone recommend some RoR plugins and/or general sage that will help me with SEO?
I myself was searching for some guide on SEO for ruby on rails, surprisingly there was no updated/recent article on the web (this post ranks #1 in google and this is also 3 years old) as that link seoonrails is dead and other articles are written in 2010 so I went ahead and wrote a complete SEO for rails guide http://www.inboundio.com/blog/seo-for-ruby-on-rails-complete-guide/. It took me 3 days to write it (including the infographic) and I have tried to link back to railscasts and other sources where ever possible to make it more helpful.
To answer OPs questions, following gems can be used as starting point -
Friendly ID - https://github.com/FriendlyId/friendly_id
Meta Tags - https://github.com/kpumuk/meta-tags
MetaMagic - https://github.com/lassebunk/metamagic
Sitemap - http://rubygems.org/gems/sitemap or http://rubygems.org/gems/xml-sitemap
Breadcrumbs - https://github.com/lassebunk/gretel
You can further refine your rails app with following gems
Rack cache (for caching) - http://rubygems.org/gems/rack-cache
GeoCoder (for geotargeting) - https://github.com/alexreisner/geocoder
Geokit (for geotargeting) - https://github.com/geokit/geokit
Mobile fu (for better Mobile Optimization) - https://github.com/brendanlim/mobile-fu
SEO is a field by itself. But for a rails app you could use the following gems to make you site more search engine friendly.
Metamagic http://github.com/lassebunk/metamagic
Headliner https://github.com/mokolabs/headliner
Gretel for breadcrumbs http://github.com/lassebunk/gretel
FriendlyID for SEO friendly urls http://github.com/norman/friendly_id
DynamicSitemaps for generating stiemaps http://github.com/lassebunk/dynamic_sitemaps
Finally all these and a small description on how to use them could be found on this blog post http://lassebunk.dk/2011/03/09/rails-seo-pack/ by Lasse Bunk
Sorry to resurrect such an old question, but it's been on my mind too, I'll share what I came up with.
As you probably know, SEO is pretty blurry in general. But these are a few of the core things that I've discovered from my reading. But I'm no SEO whiz.
A good strong name.
Every page's title attribute should somehow be titled for its content specifically. It's also not a bad idea to ensure that it has near 60 characters. As far as getting the title to change depending up on the page, you could do something like this:
http://railscasts.com/episodes/30-pretty-page-title (the railscast is a bit dated, maybe there's a newer way to get this done?)
Rails 3 - Ideal way to set title of pages (I kind of like the look of this one.)
Create a robots.txt file
You just throw it in your public folder with something like this, assuming you want all of your pages indexed:
User-agent: *
Disallow:
Create a Sitemap and submit it to Google Web Developer Tools
I just checked this one out, and it did what I wanted.
https://github.com/kjvarga/sitemap_generator
You might look at rails powered meta tags using the following gem, though, I've not used it:
https://github.com/parndt/seo_meta
And, I think that really wraps it up for rails specific things. There are so many other SEO resources out there, and so many of them are just things that you manipulate the view to accomplish, so they're not really rails questions at that point.
A few other things to think about as well, but they're not really rails specific, and mostly in your views.
Make sure your code is W3C valid
Title attributes for image tags.
Using header tags appropriately.
Don't put text in images, that's what text is for. If you want to use a pretty font, use google fonts.
Make sure you have outbound links to resources that make sense for the context of your page.
Create a printable stylesheet.
I believe the most important ingredients to SEO are:
good content and
good inbound links.
None of these can be achieved using any plugin.
See also SEO: Where do I start?
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I'm using yard to generate my documentation for Rails apps from an rdoc file. There are AngularJS documentation generators, but how could they be connected to generate one coherent document for an AngularJS + Rails app?
In this case it is probably fine to have them separated, and indeed may make more sense to have them separated. Angular is going to be solely for your client-side stuff, and I'm assuming you're then using Rails as an API or perhaps a different piece of the app's functionality. Either way, they are fundamentally doing different things, so it would make sense to have them in different doc sections.
You could create a "landing page" for your documentation if you'd like: one button links to Angular docs and one to Rails docs, and that would solve the need to have them both "in one place". Actually figuring out a way to make them overlap in the same system is likely not worth the effort though, and may actually be a worse user experience.
As the previous answer stated, it would be good to use two different tools and link them together.
I would start with something like Apipie or just rdoc to document the ruby stuff. Additionally I would search for a good js documentation generator. This article compares a four different generators, while 'Docco' seems to have a ruby port with that is called 'Rocco', that may be even able to generate documentations for both, ruby and js. JSDoc on the other hand enables you to integrate custom pages into your docs (here you could place a link to the apipie generator).
In general I would probably just go for the rails API doc and have some conventions for commenting your angular code, as the angular stuff probably has no API that is accessible by another part of your system and therefore only needs some internal documentation.
This question may be deemed off-topic or broad - apologies in advance if it is deemed so.
https://github.com/wymeditor/wymeditor/blob/master/src/wymeditor/plugins/table/jquery.wymeditor.table.js
http://wymeditor.github.io/wymeditor/dist/examples/21-table-plugin.html
This plugin describes itself as "a Table editing plugin that gives the user ability to add and remove rows and columns as well as merge rows and columns" - this is the exactly what I need for my app's backend, powered by Refinery CMS 2.1.2.
https://github.com/refinery/refinerycms/issues/1340
https://groups.google.com/forum/#!searchin/refinery-cms/wymeditor%2420plugin/refinery-cms/hflJlOBRawU/AYcaCItCoqYJ
These links lead me to believe that this feature request was never implemented but is definitely possible - I'm just wondering how.
One of the author's of the gem (Philip Arndt) hints, in the first link, that it may be a simple case of swapping out the existing Refinery CMS plugin.
I imagine I'm gonna need to determine that the plugin is compatible with the Refinery CMS I'm using and am gonna have to do a considerable amount of configuration and tweaking to get it to play nicely but I can't figure out where to start with this - what are the initial steps I have to take to at least get started? Does anyone else have experience in trying to tweak the toolbar of Refinery CMS's WYMeditor?
This will probably not be a complete answer.
I'd probably start by forking the CMS at the version (tag) I want.
In the clone, I would find the code that initialized the editor. I would look for .wymeditor( to find that code.
I would then look at this example.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I see some old questions here and here
It is now 2014, and I also have a more specific question.
Another company has built a REST API. Now I want to build a web application that only needs controller and view. I was originally planning to build this with just PHP without the bloat of an MVC framework. Then I was thinking maybe doing it with ASP.NET with just simple code behind and .aspx approach (the non-MVC way). I was even considering using only JQuery and HTML. The reason I haven't really considered a full MVC framework is because I'm simply just sending data, getting data and printing data. I don't have to really implement business logic.
Right now I'm considering doing this in just the ruby language because it seems like such a clean and minimalist language. But is there any advantage to including the entire rails framework? If so, what features are worth considering in the rails framework for my purposes?
EDIT
It seems I got a close vote for opinion based. But I'm not looking for opinions. I'm looking for the advantages of rails framework for my purposes. In other words, what problems can the rails framework solve significantly faster than just using ruby+curl+print_line().
As example on how to answer the question objectively, you can state things like:
Scenario 1:
Rails makes CURL calls and displays in views like so.
Pure ruby make calls and outputs views like so.
Result: As can be seen, rails requires X fewer lines of code than pure ruby as it pertains to the OP's original question
Scenario 2:
Rails handles page caching like so.
Pure ruby page caching will need to be handled like so.
Result: As can be seen, rails require X fewer lines of code than pure ruby as it pertains to the OP's original question
By listing the problems the original rails authors hoped to achieve and solutions they hoped for us to utilize in the situation defined in the OP's original question, we can see quantitatively the advantages Rails has over pure ruby.
Rails is pretty big, and in my opinion you don't need the bloat of Rails for something this simple. Even though it's not an MVC framework, I would recommend something like Sinatra, especially since it doesn't force you to use a database at all. Sinatra is a very simple framework, and it's most useful when you just want a way to easily set up HTTP routing with basic view support. However, note that it is possible to create a model that doesn't use ActiveRecord with Rails.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
When I am writing this, I must admit that I am already inclined towards RoR.
I have gone through official "Getting Started" tutorial and created a sample RoR app.
I have also had glance through guides.
While creating sample app, I loved the ways Rails auto-generate a whole lot of code for me, and creates a nicely organized directory structure.
Creating simple sample app is fine but now I have following questions before choosing RoR for enterprise web app.
Following are question in my mind.
How would I debug my app? While working on Java + Spring, we could step through in Eclipse, read about ruby-debug which is like command prompt debugging. Aren't there any IDE debuggers?
How would I combine all javascripts etc? in Java=Spring framework I had earlier used Google closure template for minification and joining all javascript files. would it allow sourcemap support?
Image Spiriting ? Any quick link to just look through if its possible or not?
Authentication and security : I am sure it must be possible in Rails to get logged in user's profile and then check what are db objects we can view and update, it will specific to one's web-app. Can anyone give some links, to just look through if its possible or not? can we protect the URL based on roles as we can do in spring? How do we integrate FB/Google login
Templating : While creating sample app, realized that Rails supports templating in html through embedded ruby tags, thats cool but having seen it work two more questions.
5.1 : :construct like :confirm etc would depend on jquery_ujs.js, thats perhaps
shipped with rails, but I may not want to 'jquery_ujs.js' I may have my own
different styling for modal dialogs. How do i replace jquery_ujs.js and plugin
something else ?
5.2 : app->view->layouts->application.erb.html , allows you to setup up title of all
pages and what goes in header of all pages.
But I may not want the same title and header for all pages of my web-app,
It would be different for each page. How do we do that in rails?
DB : most probably I am going to use DynamoDB as and use memcache for caching,
Any simple and sample code for pluging in the memcache in rails for dynamo
Maintaining three environment: How to we maintain three different environment in Rails, Production, staging and dev
Would i be able to use less instead of css?
As everything, there are more than one way to approach to every single question.
I usually use pry-remote to debug my rails application, because I use pow server and I use Sublime Text, but RubyMine is a nice IDE for developing Rails apps and it has a build in debugger.
Sprockets takes care of this and it's integrated in Rails. I use SASS and CoffeeScript, and you can generate source maps easily for them using those gems - sass, coffee
You can use Compass to generate image sprites pretty easily. (Check out this episode on Railscasts - Compass & CSS Sprites
Devise gem is really popular solution for authentication and for the Facebook/Google+ you can use OmniAuth which integrates nicely with Devise. And for authorisation, a really popular solution is Pundit gem.
You are free to use whatever JS UI library you like and for the dynamic layout content you can use content_for helper. You just have to add yield :page_title in your layout and then, call the content_for :page_title { 'Specific title' } in your views.
For this question, I don't have an answer but I am pretty sure that there is a gem that can help you with this like Dynamoid for example
Rails supports different environments out of the box (testing, development, production) and you can easily add your own ones.
Rails has a support for SASS out of the box, but you can easily switch to LESS. Check out less-rails gem.
Rails is pretty mature framework and the community around it is pretty good, so you can easily find a gem that can help you solve specific problem. And there are quite a lot resources around the internet.
Good luck :)
i will give a short glance
ANSWER-1
There is no such debugger like eclipse for ROR, you can use sublime_text editor for editing, Rspec is nice tool for RoR.
Answer-2
In RoR there is no need to combine all js files,you can write any of the .js file it will be render to application.js default
Answer-3
Link to question
Answer-4
There are gems in RoR which wil easily help you to do stuffs like authentication, omniauth etc..
RUBYGEMS
Answer-5
There are many ways you can easily find out asking on stackoverflow for your problem.
Suggession:
Instead of asking many question you should try to learn ruby deeply you will easily get your answers.
I was hoping to get some advice. I want to create an application which is like a library that holds a lot of different information including documents, pics etc where a user can log in and search for different topics and see the definition of terminology. For example users would be able to click on the word 'electical current' and a definition of electrical current would appear with also links to supporting information. The user will not be allowed to edit any information only read it.
I am wondering what is the best language to use to do this? I know that storing all the information in a html file is definitely not the way to go. But I am not sure what to use - whether html linked to a database is a good option (I've heard that this is also not great because your database code is still accessible) or whether ror is a good option. I decided that ror would be a good framework to use but I still have some doubts such as:
the application will not be hosted on the internet but only on an intranet would ror still be good for this?
the 'site' is basically static except for a few users who will have admin access although it may have more user specific functions later on.
Any advice would be great. Thanks in advance.
It seems to me that a wiki type system would be fit for your purposes. You can create one without writing any code by using a free service such as Google Sites.
I agree with #Finbarr that your problem statement sounds like it could be solved by a wiki.
I suggest mediawiki since it is open source--you can add to it or change the core software if necessary.
Or any other opensource wiki could be used. See wikipedia article
Re: which language: your problem statement is pretty broad. From what you've told us, any language would do.
Best advice: find the open source wiki that most closely meets your needs and then learn the language that it was developed in. Usually that's php or perl. But you can also find Ruby on Rails wikis such as Instiki
Added: Welcome to Stack Overflow. Note that your question is quite broad. So it may get closed for not being specific enough. Stack Overflow is aimed at answering specific questions about software programming. See the faq.