It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I'm getting started building a site with Rails and I would like people to be able to vote certain things with the options of "yes" or "no" or "right" or "wrong". I would also like there to be a running tally computed by percent (maybe below). Could someone tell me how I can add this functionality?
Thanks
I just finished up something similar.
If you'd like to see how other people have tackled this problem, just search github. There are 30 ruby repos.
I found acts_as_voteable the most helpful.
Remember to build it in such a way that enforces: "one vote for one IP address". Other than that, it is straight forward and plain Mathematics.
You should also take a look at 'counters' in the API, such that each vote has a value and the tallies are kept on the voted-on object (so it doesn't have to run a count every single time).
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I need to add unlockables to my application, but the problem is that I don't want to have to send out an update every time that I want to add something new. I have read a bit about servers and JSON and XML. I just wanted to check to see if anybody else had a better idea?
If you are talking about something like a logo change then, short of an app update, the only option you have is getting it from an outside source such as a server transmission. But now you are talking about in-app purchases which, if you have not already, should read up on.
https://developer.apple.com/in-app-purchase/In-App-Purchase-Guidelines.pdf
Server based image and/or text transmissions are easily done and if I understand your last comment correctly, these updates would not be very frequent anyway.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I am relatively new to Ruby on Rails. I have built few sample apps but now I want to build a real world app like an events website which gives information on forthcoming events, event galleries, etc. Can some one give more ideas on this or something already built on github to learn using it.
Thanks in advance.
By the types of question you are asking, it seems to me that you are not very experience in Rails. Therefore, I recommend you to complete Michael Hartl's tutorial: http://ruby.railstutorial.org/ruby-on-rails-tutorial-book. Although it won't teach how to make galleries and such, it will teach you the fundamentals that you need for your app. For instance, in your case you will understand how to create an Event model with information in a database that you can then show. After that, you can go ahead and check out things like spud_photos( https://github.com/gregawoods/spud_photos) which is a gem that allows you to create image galleries.
Good luck
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am looking to make my first ruby - based website.
I am assuming looking at tutorials that print "hello" should work, but it does not.
Any pointers? I am assuming this is a silly noob question.
my file is located on mysite.com/test.rb
thanks!
(this is more of a dummy starter question than coding, so it is here rather than stack).
Have a look at Sinatra. You can get a hello world site up in 5 lines of code, and then start checking out tutorials from there.
Check out Ruby on Rails resource http://ruby.railstutorial.org/ruby-on-rails-tutorial-book. It is very easy to start learning.
If your file only contains the following
print "hello"
then it most certainly wont just work by browsing to site.com/foo.rb
You need things setup like a webserver to handle the request and route it to a ruby interpreter, etc...
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I want to data mine dribbble.com so I can make an app that registers when the best time is to upload a shot to dribbble is. I've seen someone do it for stories on news.ycombinator.com/ (Hacker News): http://hnpickup.appspot.com/.
I don't really know where to start since I'm still fairly new to RoR. I hope you can give me some pointers.
I'd like to run the app on Heroku, if that matters.
Michael Hartl's tutorial is a good place to start for this task. The internal logic would need to change to be yours but I think that is down the road a bit. As for charting there is FusionCharts and HighCharts to name a couple of options I am familiar with.
I ended up using Heroku scheduler to scrape dribbble, using their own API.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
Ok, quick points for someone who is better at searching than I am...
I know I have seen before a list of translations of common application strings like "File," "Open," "Save," "Close," and "OK," into other languages. This was not just a scrape of Google translator, but an actual "official" list based on the localized OS. It seems to me that it was on Microsoft's site, but I'm not 100% sure.
I need to translate my application into Indonesian and wanted to give our translators a head start by filling in those common terms with the standard values, but now I cannot find the web page(s)! I've spent about 15 minutes and will continue to search (and will post the answer if I find it), but if someone else knows where that is (or finds it first!), please answer.
Microsoft Language Portal