odata_server icon indicating copy to clipboard operation
odata_server copied to clipboard

How to get things running

Open Georgi87 opened this issue 12 years ago • 12 comments

Hi Brad,

thanks for this gem! I would love to use it in my project but I don't get it running. Could you provide a short example how to use it in a rails project?

Thanks very much in advance!

Stefan

Georgi87 avatar May 09 '12 00:05 Georgi87

Hi Georgi:

I have not used this in quite a while... it should be as simple as just including the gem in your Gemfile, but I don't know if it works at all beyond Rails 2.3

If you send a patch, i'll incorporate it.

bwlang avatar May 09 '12 01:05 bwlang

Thanks for your answer. I tested it with Rails 2.3 and 3.2. Unfortunately none of these worked for me. Is there a rails version 2.8? I can't find one. Sorry if this question seems odd, but I didn't find a tag in the rails Repo for 2.8 and I am new to rails.

Georgi87 avatar May 09 '12 09:05 Georgi87

doh... mixing up ruby 1.8 and rails 2.3 - sorry for the confusion. If i can find some time, i'll have a look at firing up a quick test project.

bwlang avatar May 09 '12 10:05 bwlang

That would be great! Thank you!

Georgi87 avatar May 09 '12 11:05 Georgi87

Hi Brad,

I am also trying to use your project. I created my own empty rails app and put the line

gem 'odata_server'

in the Gemfile and executed 'bundle install'. I created a model, migrated the db and started the server. Unfortunately I cannot query "/OData/OData.svc" (Routing Error) or any other pages that should be provided by the OData Gem. Don't I have to require your Gem somewhere in my code and initialize the routes?

Could you please help me, or send me an example rails app?

Thanks in advance. Cheers. Felix.

fleupold avatar May 10 '12 14:05 fleupold

surprised this project hasn't been kept upto date now everyone these days seems to be jumping on the OData bandwagon. Did the outstanding problems get resolved?

johngaitens avatar Feb 21 '13 15:02 johngaitens

I too am surprised this project hasn't come back to life. There's a lot of new projects popping up around the OData specification.

thedillonb avatar Mar 25 '13 23:03 thedillonb

I started work on a Rails 3.x engine if its any use to anyone - over here... https://github.com/wtfiwtz/odata_server

I was hoping to get OData working with breeze.js on Rails but its looking like a lot of work so I might go for a different option.

wtfiwtz avatar May 30 '13 02:05 wtfiwtz

That's awesome wtfiwtz. I too would really like to see it working with breeze.js as well. Are there a lot of missing pieces to getting the two work together?

thedillonb avatar May 30 '13 17:05 thedillonb

Hi thedillonb, hopefully there isn't too much more... I'll see how I go finding some time to get the odata_server gem fully working. There are some issues with the Rails path helpers and using an Isolated Engine but they may not take very long to get sorted.

Breeze.js looks quite nice... I have played with persist.js and persistence.js, which are both workable, but it would be nice to have support for full client-side database tables synchronized with the server (... depending on the browser support). Breeze.js makes this look a lot easier, definitely.

wtfiwtz avatar May 31 '13 22:05 wtfiwtz

I built on the work wtfiwtz and bwlang did and made yet another fork at https://github.com/lmcalpin/odata_server. Wasn't sure if anyone was still working on this gem anymore, but if there is still anyone out there using OData with Rails that has a use for this besides me, feel free to take a look and I'll be happy to patch up anything that isn't right.

lmcalpin avatar Sep 04 '13 01:09 lmcalpin

Update several years later: https://github.com/synbioz/odata_server seems to have the most up-to-date README with setup instructions (and new features).

cooperka avatar Jun 24 '20 00:06 cooperka