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
There are a few plugins that implement a traditional wiki (collection of stand-alone wiki pages in a flat namespace), including irwi and wiki_column. That's not what I want.
What I want is something modular, so I can add a wiki panel on any random page of my website, or have fields in several different models be "wikified" (editable by all with version history). In other words, I want embeddable wiki objects rather than a full-page wiki, and I want the wiki content blocks to be anonymous rather than named in a unified flat namespace, or associable with specific objects.
Is there anything like that?
To wikify content is rather easy, so here some thoughts to it:
Have a look at the Railscast: Markdown with Redcarpet which explains how to wikify (that means style) content as HTML. That is one of the things you have to have to wikify pages. It is rather simple, and works like a charm.
Second, how will you link to "wiki content" without a name? For me, wiki is at least some content that is linked ...
To get a history, you should link your model object to versions of model. The Railscast #177 implements a wiki with versioning, perhaps that gives you enough hints to do it.
To add "a wiki panel" means then, that you have a (versioned) model WikiPanel, that may then used by other models. Hope my hints give you a starting point (even if it comes 20 months too late ...).
You could check out AdvaCMS, which features a wiki. AdvaCMS is built with Rails Engines (e.g. plugins). Check it out at http://adva-cms.org/wiki
Related
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
EDIT:
This is a very old question, when escaped_fragment was necessary for search engines, but nowadays, search engines do understand Javascript very well, so this question becomes irrelevant.
===========
I was wondering how much SEO friendly could Polymer be.
As all the code is fully dynamic like Angular, how can the search engines pick up the information of the page? Because also doing things in Angular, I really had a hard time making it SEO friendly.
Will there be a tool to generate the escaped_fragment automatically to feed the search engines?
I guess Google may have thought of the solution, but I wasn't able to find it (even on Google).
According to the Polymer FAQ all we have is
Crawlers understand custom elements? How does SEO work?
They don’t. However, search engines have been dealing with heavy AJAX based application for some time now. Moving away from JS and being more declarative is a good thing and will generally make things better.
http://www.polymer-project.org/faq.html#seo
Not very helpful
This question has bothered me also. The polymer team has this to say about it, looks promising!
UPDATE
Also figure it's worth adding some context from the conversation on the polymer list, with some helpful information as to the status from Eric Bidelman.
Initial examination of the structure of the Polymer site suggests that it serving up static content with shadow-DOM content already inlined in the page. Each HTML file can be loaded from the server directly, via HTTP GET, and subsequent navigation uses pushState (documentation) to inject pages into the current DOM if pushState and JavaScript is supported.
It's recommended to use pushState over _escaped_fragment_, since it's slightly less messy, but you'll still need to do regular templating on the server. See The Moz Blog for more information on this.
DISCLAIMER
I may have missed or misinterpreted some things here, and this is just a quick peek at the guts of the page, but hopefully this helps.
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 4 years ago.
Improve this question
So I'm going to embark on a project using ember-data, which tells me
The REST adapter assumes that the URLs and JSON associated with each model are conventional; this means that, if you follow the rules, you will not need to configure the adapter or write any code in order to get started.
Right-o! I want to do that. But what I would like to know is: is there a gem out there to help me build this REST API? If so, I could save time and use it instead of reinventing the wheel myself (and misinterpreting the conventions). Alternatively, I could set about developing such a framework as a separate gem!
So far I've seen
https://github.com/emberjs/ember-rails (seems focused on managing the javascript side and asset pipeline)
https://github.com/dgeb/ember_data_example (more an example app than a framework?)
and neither of them appear to be quite what I'm after. Am I wrong here?
(N.B. please consider me aware of the experimental nature of ember-data and the implications associated with it.)
I haven't tried it but this might be what you want: https://github.com/hedtek/ember-generators
If you're referring to the rails backend look at active model serializers (which I believe is a dependency with the ember-rails gem). And then for your controllers use respond_to :json and in your actions do respond_with <your_active_record_model_or_array_of_models>. Hope that helps.
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 6 years ago.
Improve this question
I was looking for something to help me parse general meta-tags from websites similar to this github project I found for open graph data. Here's a demo app.
Basically, I'd like to be able to have a user input a URL from a news site and have it retrieve from that the Title, Desc, etc., leaving as little work possible for the user. Before I go roll my own I was wondering if there was a current project / gem that exists similar to the project above? (as it only works with open graph and not general meta-tags)
I also noticed that facebook's linter does this as well even without open graph specific tags.
I would recommend the Nokogiri gem. It is an HTML, XML, etc. parser so you can use it to parse pages on your own. The nice thing about this approach is that it affords you the most flexibility for your specific use case. You can use the gem to parse any meta and header tags as long as you can express them using XPath or CSS3 selectors.
You can also try this free (for most) Open Graph API that I built: http://www.opengraph.io/
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 7 years ago.
Improve this question
I once found a slick looking car make/model dropdown menu web service that advertised form helpers for Ruby on Rails, have subsequently been unable to find this again by Googling for it.... Anybody know the service I am talking about?
Edmunds provides this data for free through an API. You just have to sign-up to get an API key.
See documentation here:
http://developer.edmunds.com/api-documentation/vehicle/
Sign-up to get a key here: http://developer.edmunds.com/index.html
One example of making the call (many more examples given on their site):
https://api.edmunds.com/api/vehicle/v2/makes?fmt=json&api_key={your API key}
I was looking for exactly this kind of information for motorcycles. From what I can tell the API does not provide motorcycle data, but it seems to have just about everything for cars - Make, Model, Year, Trim, Style, even Maintenance Schedules.
With the json or xml data, you will have to roll your own drop down menus. Edmunds does provide some premade widgets, but they are pretty specific (e.g. return True Market Value), so there is a good chance they won't have exactly what you need.
http://developer.edmunds.com/widgets_and_apps/index.html
It doesn't include form helpers or anything, but here's a Ruby implementation that uses the KBB database to retrieve make/model info:
http://tektastic.com/2008/03/car-or-auto-make-model-year-database.html
I'd probably cron this outside of the app and update the db from time to time, then use collection_select in the app to construct the dropdowns as normal. You could also adapt it to use ActiveResource for live retrieval, but that seems excessive and perhaps bannable by KBB.
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 4 years ago.
Improve this question
I am looking for a web-based WYSIWYG (or WYSIWYM) editor like TinyMCE or WMD Editor (used to write this question) that supports users to write mathematical formulas. I have looked at LaTeX a little bit but it has a learning curve and I am not sure if support for MathML is extensive. Ideally I would also like to avoid having to rewrite an editor and would rather just pick one off the shelf.
Would like to know if any of you have dealt with a similar situation and what solution you adopted/built.
I was looking for something similar and came across this question. Then I was excited to find Mathquill, via the Wikipedia page on formula editors.
I've used a bunch of different formula editors, from MS Equation Editor to Google Docs' to LyX, and this is probably the most usable/fluid of all of them for simply banging out formulas. And it's web-based and GPL. This thing is much nicer than Google Docs' formula editor, at least.
Still leaves plenty of things to be desired, e.g. so far I've found: bolding, entering things like bra-kets, \hat, undo/redo history, mouse drag selection, etc. But I'm impressed by what's already in there. Anyway, it's just a few Javascript files, and on github.
http://www.dessci.com/en/ has the software to do exactly what you want.
I used texvc in a project a while back (what wikipedea uses) and it was reasonable, but it isn't really WYSIWYG. On the other hand, I prefer that since in many cases it's easier to specify what you mean than draw it.
see here DragMath
http://www.dragmath.bham.ac.uk/index.html
which is already used by Moodle and other sites.
And its Open Source
WIRIS would be another Javascript based visual math editor (commercial license required for some applications).