Tagged Questions
-3
votes
0answers
54 views
Rocketpants or Grape? [closed]
I am new to Ruby and Rails. I googled but did not find discussion related to this topic.
I am considering Rails and my basic requirements are as follows:
1. The application will have REST APIs. So I ...
0
votes
1answer
46 views
versioning best practices for ruby gems
i have a project currently in production but still being actively developed. i'm adding new gems and functionality to it often. before my last release some of my code broke in my dev environment and i ...
3
votes
1answer
69 views
paper_trail and keeping relations untouched
Is there any possibility to force paper_trail to not change relations when it's version changes?
My app is a betting software and I need to keep user bets on the one that was active at the time when ...
0
votes
0answers
45 views
Moderating a model in Rails3
I need to implement some kind of moderation system in a Rails 3.2 app.
I already found vestal_versions and paper_trail and I think that versioning is a good solution for what I have to do ...
0
votes
1answer
56 views
Mongoid history_track gem not tracking changes when embedded documents change
I've got the following three models:
class ItemGroup
include Mongoid::Document
embeds_many :item_attributes
field :name
end
class ItemAttribute
include Mongoid::Document
...
2
votes
1answer
102 views
Implementing version history with a closure table schema
I have a custom CMS implementation that stores content nodes in two tables as described in the "closure table" section at http://www.slideshare.net/billkarwin/models-for-hierarchical-data and using ...
1
vote
0answers
58 views
API Versioning in Rails 2 project
I've got a project running using Rails 2.3.14 and Ruby 1.8.7. I'd like to implement a versioning system for our RESTful API similar to what is shown in ...
4
votes
3answers
239 views
Elegant API versioning in Rails
At the moment I'm implementing versioning for our REST API in our Rails application. Is there a way this can be implemented so you only define new functionality in new versions? Say for example:
I ...
0
votes
1answer
189 views
Using versioning in a Rails API app- Cannot render JSON for a particular controller action
I created a practice rails app where I have created a namespace and versioned like is demonstrated in this railscast. Everything is working fine and I can see the json output in the browser
Then I ...
0
votes
1answer
160 views
Functional Testing with API Versioning?
I followed the RailsCast #350 REST API Versioning and #352 Securing an API which creates an API under app/controllers/api/v1 so you can type in localhost:3000/api/v1/restaurants and you'll get the ...
1
vote
2answers
612 views
Where to define Rails app's version number
Is there any convention about how/where to specify application's version number?
For example, for the ruby gems lib/mygem/version.rb is the file generally used for that purpose.
My guess would be ...
1
vote
0answers
92 views
mongoid versioning can't destroy just one single version
I'm using Mongoid::Versioning to version my Wiki model by including Mongoid::Versioning
class Wiki
include Mongoid::Document
include Mongoid::Versioning
include Mongoid::Timestamps
field ...
85
votes
5answers
9k views
API Versioning for Rails Routes
I'm trying to version my API like Stripe has. Below is given the latest API version is 2.
/api/users returns a 301 to /api/v2/users
/api/v1/users returns a 200 of users index at version 1
...
2
votes
3answers
278 views
gem list is showing two versions of a Ruby gem immediately after updating the gem
I just updated the mime-types gem with gem update mime-types. gem list displayed mime-types (1.16) prior to updating. After the update gem list shows mime-types (1.17.2, 1.16). Why are two version ...
1
vote
1answer
650 views
How do I store versions of model data in rails?
I want to implement a way to version models in a ruby on rails app. (version 3.1+). What I am after is much like what mediawiki does; making it easy to diff the changes made, showing what changed and ...
0
votes
2answers
147 views
data structure versioning in rails
First a disclaimer: don't know if I'm trying the impossible here.
Our rails (2.3.12) application is growing up very fast. The little bugger already has >20 models and >100 migrations. One of the ...
3
votes
2answers
389 views
How to setup admin approval a model's edits
I need a system where a regular user can edit a model but the edits don't actually happen until they are approved by an administrator. I found a gem called paper_trail that does had model versioning ...
2
votes
1answer
196 views
Compare and see changes with paper_trail
We know paper_trail has the power to undo changes. But is there a way to see what the changes are so that we know which version to undo to? Better still, we can compare the changes side-by-side.
...
1
vote
0answers
171 views
Papertrail versioning with correct numbers
I have an article model that I want to track versions with, mainly so that users can see the history of a work in progress.
However, papertrail stores the first version of the article as a nil ...
6
votes
2answers
2k views
Object versioning in Rails, like Papertrail but individual tables
For a project I'm currently working on I need to implement object versioning. Unfortunately I need to keep a full history of each object, so a single table solution like Papertrail would quickly ...
1
vote
1answer
87 views
How to manage code comments using NetBeans?
I am using ruby on Rails 3 and my IDE is NetBeans v6.9.1.
Since in files I have a lot of comment lines that describe my code, and sometimes these comments are also repeated in multiple files, there ...
1
vote
1answer
502 views
Mongoid, can't make versioning work with embedded document?
What am I missing here ?
I have a relative simple structure here:
Class Content
include Mongoid::Document
include Mongoid::Timestamps
include Mongoid::Paranoia
field :title
...
2
votes
2answers
978 views
Rails: best practice to do versioning of content on mongo db (mongoid)?
I need to build a simple content repository, but I need to be able to do basic versioning, any suggestion on how to tackle this the best way possible ?
A simple array of embedded content ? What's your ...
0
votes
1answer
69 views
What is a good way to handle multiple versioned TOS documents?
App has multiple Terms Of Service-type agreements. Each agreement needs to be versioned, and have dates associated for when the agreement is valid. I'm looking at the various ActiveRecord versioning ...
0
votes
1answer
183 views
Rails versioning with point-in-time query
Is there a Rails 3 model versioning plugin that supports point-in-time queries (not just recovery) in an SQL database?
To be concrete: I have a table, documents. I want to be able to say, "as of ...
2
votes
3answers
2k views
Document management system: what to use as storage backend (docs content repository)?
I want to make a document management system (interface in Ruby).
What do profesional sollutions (Alfresco, Liferay social office, others) use for storing and versioning documents?
What else can I use?
...
5
votes
1answer
971 views
Rails record versioning solution
I'm looking for a solution to version database changes in rails. Looking for something very basic.
I mean like a wiki or SO edit versioning.
2
votes
1answer
332 views
How can I get vestal_versions to store the user who changed the record?
I'm using vestal_versions 1.0.2 and rails 2.3.8
I'm trying to associate a user with changes made to models as shown in the the documentation:
@user.update_attributes(:last_name => "Jobs", ...
3
votes
2answers
871 views
Versioned associations using vestal_versions?
I'd like to be sure if vestal_versions does support versioned associations (it seems like it doesn't) before switching out to another versioning gem that can support versioned associations e.g => ...
3
votes
1answer
237 views
rails wiki site - article edit highlighting/strikethrough with htmldiff maxes cpu
I'm implementing a wiki style site and want to highlight changes made to articles between successive versions. Using htmldiff to highlight changes works great, except it is rather cpu intensive. I'm ...
0
votes
1answer
200 views
Rails wiki highlight/strikethrough version differences between article versions
I'm wondering how to implement highlighting of changes to user edited articles on a wiki style rails project. Since articles may be fairly lengthy I'd ideally like strikethrough and highlighting, ...
1
vote
1answer
338 views
vestal_versions and htmldiff question of reversion
I'm guessing there's probably an easier way to do what I'm doing so that the code is less unwieldy.
I had trouble understanding how to use the revert_to method... i wanted something where i could ...
2
votes
2answers
79 views
Helping Rails Newbies identify version-specific information on web pages
I am trying to help some people getting started programming on rails identify which version that advice found on web pages corresponds to, and am seeking advice and/or guides on how to do it so they ...
0
votes
3answers
274 views
How does PivotalTracker.com update its view in real time?
I'm trying to build a view similar to PivotalTracker where there are a variety of rows in different buckets. There is some polling to the server because rows could be updated by other users while ...
14
votes
6answers
4k views
Versioning of Models in Ruby on Rails
I'm looking for a plugin/act to allow versioning of my models. It's kind of difficult to find a list of the available solutions. So far I gathered:
acts_as_versioned
simply_versioned
vestal_versions
...
1
vote
1answer
584 views
Vestal versions not working
I'm trying to get the Vestal Version gem to work, but I keep getting this error:
>> Song.first.version
=> 8
>> Song.first.revert_to(7)
NoMethodError: undefined method `>' for ...
12
votes
5answers
2k views
Best way to version a rails app? [closed]
What would be the best way to version a rails application? We want to start to get into more structured testing cycles and having a set version per build is a part of that. We use subversion but I ...