322 Topics
![]() | |
Hi just start learning rails i found some difficulties to start the server under linux mint please find the errors i get /var/lib/gems/1.8/gems/railties-3.2.13/lib/rails/script_rails_loader.rb:11: warning: Insecure world writable dir /sbin in PATH, mode 040777 /var/lib/gems/1.8/gems/bundler-1.3.5/lib/bundler/runtime.rb:216: warning: Insecure world writable dir /sbin in PATH, mode 040777 /var/lib/gems/1.8/gems/execjs-1.4.0/lib/execjs/runtimes.rb:51:in `autodetect': Could not find a … | |
My team has been doing Java for a long time. We are switching to Ruby. We are finding that Ruby has limitations and that we have to do certain things in Java. I'm trying to find a way to call Java code from Ruby. I'm searching Google and such, and … | |
Hi guys, I am new to ruby i already have an experience in the core php and zend framework.I need to clarify the below doubts, Is oops in ruby is completely different from other oops concept languages like java,c#. Can you pls help me out. Thank you, Regards, Premnath | |
Hi, I'm developing an application which needs to check user-inputted credentials against a Mysql database running on a web server. Does anybody know how I could communicate between c++ and a PHP or Ruby on Rails page and then parse the results back to the client? Many Thanks ![]() | |
Hi, I have module that imports data from json file to hash. Json file is pretty big so I don't want loading to take place on every request because it takes some time. It would be best to do this just on server start. I have a class variable in … | |
perl vs ruby. what is the difference in speed/popularity and performance? thanks | |
class variables have a niche to fill: ***visibility to a class and its instances, and to no one else. Typically, this means being visible in class-method definitions and instancemethod definitions, and sometimes at the top level of the class definition.*** I understood that. But didn't find any example of the … | |
This is below is an example of superclass/subclass construct : C:\>irb --simple-prompt >> class Parent >> @@x = 10 >> end => 10 >> class Child < Parent >> @@x = 12 >> end => 12 >> class Parent >> puts "@@X = #{@@x}" >> end @@X = 12 => … | |
I'm converting a Java/J2EE app over to Ruby/Rails. I need a solution for the CORBA calls. I see that Ruby has its own distributed API (DRb) and there are a few 3rd party CORBA tools, but nothing seems viable for actually doing CORBA in Ruby. What are you guys using … ![]() | |
I am using this [application example][1] and try to model it to fit my needs. I am modelling your index.html.erb to fit my needs. I want to get rid of "start" button in order to prevent single-file upload (I dont want it), but it seems that "start upload"(multiple upload)-button is … ![]() | |
Hello again I am trying to show the errors that can occur by uploading a file (file name, size). I tried to modify this code cut-off but I could not. else format.html { render action: "new" } format.json { render json: @upload.errors, status: :unprocessable_entity } end I have following validations … ![]() | |
Hello! I try to catch a validation message with a `$.parseJSON(xhr.responseText).errors` but an allert message hows me "undefined" and I dont understand why. hier are my validations: validates :upload_file_name, :presence => true, :format =>{:with => %r{\.(pdf)$}i,:message =>"It should be a pdf File"} validates_uniqueness_of :upload_file_name, :message => "blabla" validates :upload_file_size, :inclusion … ![]() | |
I need to write a module for WXF (Web Exploitation Framework) which will brute force (enumerate) the login system of DVWA. The module has to be written in Ruby and it should abide by the framework's structure and regulations. The final result should produce a list of brute force parameters … ![]() | |
I am using the ruby Instagram gem. Now, I am wondering how to access to a user's images by tags. Only that specific user's photo. This is what I use to get the photos @pics = Instagram.user_recent_media(xxxxxxx) @pics.map do |p| puts p.images.standard_resolution.url.to_s end And this gives me the tags @pics … ![]() | |
Hello everyone. Im COMPLETELY new to programming and Ruby and i would like to know how i can make this happen: What I want from my program is to understand letters as numbers then add up names into numbers and then retreive previously written names when number x is given. … | |
I am wondering if anyone could recommend the best CMS for an Airbnb-style marketplace that allows people to sublet their apartments, and other people to search, filter, and pay for the apartments listed. These are the main requirements: - Ability to sign up both buyers and sellers. - Accounts for … ![]() | |
am very new in programming and by now have started learning ruby and what i want to know is if ruby can be used to make nokia phones apps. If yes what are the requirements pliz | |
I am currently in the middle of redesigning an iRC game bot into ruby. I am experiencing problems be to me not knowing any kind of ruby language, (new to the coding world) i was curious if someone could point me to a path I could change an irc coding … | |
Is anyone running Ruby on Rails on an Imac G4 or G5? Im on a tight budget right now and dont wanna spend more than I have to. Are either of these models working for anyone? If youre not using them, could I still use either one of these models? | |
How the below mentioned `quantifiers` differ - with respect of scenarios,speed,etc. - `? v/s ?? v/s ?+` (**_1 or 0 times_**) - `* v/s *? v/s *+` (**_0 or more times_**) - `+ v/s +? v/s ++` (**_1 or more times_**) `?,*,+` belongs to `greedy` `??,*?,+?` belongs to `reluctant` `++,*+,,?+` … | |
The comparison operators: * === * <=> * eql? * equal? * == Both are performing equality check I know. Some of them overrides `==` also. But now my query is how to think,what to use in what situations? Explanation with a code would be better idea to understand. Thanks … | |
Hi, Is there any difference between `inject(:+) and inject(&:+)` ? If `NO` hen how these two kind of syntax with same method? And if `Yes` then why the output are same for both? irb(main):005:0> [1, 2, 3].inject(&:+) => 6 irb(main):006:0> [1, 2, 3].inject(:+) => 6 irb(main):007:0> Thanks, | |
irb(main):001:0> time=Time.new => 2013-01-12 11:22:54 +0530 irb(main):002:0> puts time.to_s 2013-01-12 11:22:54 +0530 => nil irb(main):003:0> puts time.ctime Sat Jan 12 11:22:54 2013 => nil irb(main):004:0> puts time.local_time NoMethodError: undefined method `local_time' for 2013-01-12 11:22:54 +0530:Time from (irb):4 from C:/Ruby193/bin/irb:12:in `<main>' irb(main):005:0> puts time.localtime 2013-01-12 11:22:54 +0530 => nil irb(main):006:0> puts … | |
Could you please tell me how the below directives works with Ruby array `pack()` method. As the document not gives piece of code to describe what to use , when? `n,v,U,w,L!<,S!< I!< ` thanks | |
There is `text label` on a webpage, and I am trying to click on that to open a pop-up window,but not getting opened. here is the `HTML` code: <td width="40%"> <div id="EmpId.outline"> <input type="hidden" name="EmpId" value="" id="popupEmpId"> <input type="text" name="EmpCode" value="" readonly="readonly" class="textMedium250" id="popupEmpCode" autocomplete="off"> <a href="#f2"><label onclick="checkForPopup('EmpPopupDiv','Select a Emp',640,true,refreshConditionOptions);"> + Search for a Emp</label> </a> … | |
Hi there, I'm using Spree in a Rails 3.2 app of mine and I want to extend Spree's Product class to better suit my needs as for example to establish a relationship with another model in my app. What's the best way to do this? I could not find anything … | |
Ok, so I'm working from a book called Agile Web Developement with Rails 4th Edition. I got up to page 83 where they have us running tests to ensure proper validation of our code up to this point. So I have checked and rechecked to make sure my code is … | |
I am trying to use custom tags in ruby..i am a newbie to ruby.I hav developed in java before and i am myself a web developer.I have made custom tags for JSP pages but i m not sure wether we can form custom tags in .erb files also..??? | |
Alright. I am a beginner and I am unable to find a solution to this problem. I am developing this quizzing application. I have built the part that allows you to create and manage questions classified by difficulty and tags. But Im not able to think of a proper quiz … | |
Don't understand how to do t he follwing subcommands. init: do an initial scan. For example synch init ~/work report: compare current state with the saved state and report on differences. For example: synch report ~/work update: create a report but also update the file to reflect the current state. … | |
Hi, I am a very beginner on Ruby and related stuff, Could you please tell me what a tag like this "<%!" means in the following code. Also, I would really appreciate if you can give me some ref to erb templates. <%! if filmstrip_image_path.blank? %> Also what does this … | |
I was following RailsCasts tutorial JQuery Uploading and I ran into difficulties. I would like to be able to select several files, preview only the name of the files on the website, remove those, which where selected by mistake and only then upload the neccessary ones in Ruby on Rails. … | |
I've been using Ruby and Rails and other ancillary technologies for a few weeks now. I've gone through many articles, blogs, tutorials, et al. However, I've rarely found any downloadable "working examples" or "real-world applications". Everything is very basic and it's proven difficult to learn beyond the basics. It could … | |
Write a program that will print a two-column ASCII table for both lowercase and uppercase letters and the digits 0-9. | |
Because of [the course](https://www.edx.org/courses/BerkeleyX/CS169.1x/2012_Fall/about) I think to take to improve employment changes by SaaS, Ruby and Rails and basic agile techniques, I looked little the Ruby forum. Unfortunately it seemed in quite a sorry state some months old questions unanswered. Even there was a related article from one of them … | |
Hi i m trying to find which framework is robuste and fast to learn is it cakephp or ruby... | |
Hi friends, I m a PHP programmer and I likes to learn Ruby . But I had stucked ( Really Became Mad ) with installing ruby on Rails in my System .. Googled a lot ... but it is installing Ruby 1.8 & Rails 2.3 ... Please Help me .... … | |
Hello, I am having trouble finding a good tutorial on how to install eclipse with aptana radrails on centos, when i try to install radrails in eclipse using the instructions givin here ([aptana](http://www.aptana.com/downloads/start)), i get these errors. Can someone point me in the right direction? Thanks :) An error occurred … | |
Hello, I'm struggling to make a join between tables work on a non-standard schema. I know the proper way of doing it would be migrating the schema and using the ActiveRecord convention but as long as I'm using this to consume data for testing purposes, that's not an option. The … | |
Hello, anyone can help me with parsing an html table data to be saved directly in an excel file from the same parsing app? | |
Hi, I'm working on rails project where I use json file for storing some data. Basically data are stored and get using ajax calls from jquery. But there are some strange issues. For example, when I add data in json file using AJAX and then open file in Chrome: localhost:3000/example.json … | |
Hey guys. Im designing a web app with rails for storing and analysing college students' marks. Ive come up with a database design like this:  Now IM not sure how to set the associations. Can you please help me? And is the design ok? | |
Hello, anyone can help me with how to build a simple user registration form using Rails from scratch, with the fields Login Name, Name, Address and Password (encrypted)? I will be using MySQL to host the database. I've already created the new project using: rails new reg_form, now what next?? | |
after pulling my hair out with this one, I'm afraid I'm going to have to turn the knowledge of those much wiser.....again! ok so here's the problem, I am following the following two railscasts: [deploying to a vps](http://railscasts.com/episodes/335-deploying-to-a-vps?autoplay=true) [asset pipeline in production](http://railscasts.com/episodes/341-asset-pipeline-in-production?autoplay=true) My setup: Ubuntu Server 12.04 nginx unicorn ruby … | |
Hi, I've been working with Ruby on Rails to make a web application, but I've found something that I really cannot work out how to do with it, so it may be best if I do it manually. Basically, I've got a dropdown menu, that is populated with a list … | |
Hi all the Ruby Folks! Use your skills for the sake of the OpenSource community, and try out the Ruby OpenSource Challenge. Fix a bug, write a new needed feature or just update the lagging documentation of a pointed Ruby Open Source project, and have a chance of winning some … | |
Hello, anyone can help me with the conversion of single quotes in a string to double quotes? Am new to Ruby programming and still learning around on how to use it properly. I have an example in Delphi, which I want to make compatible with Ruby: function ReplaceSingleQuote(AText: String): String; … | |
Hi - I'm very new here (1st post). I read the introductory docs, and looked at the categories, but I didn't see a specific place for posting code for review/critique. My apologies if this is not the appropriate place to do that... Here is some code I am hoping to … | |
I am having a hard time connecting to active admin I get stuck @ localhost:3000/admin of the this tut http://net.tutsplus.com/tutorials/ruby/create-beautiful-administration-interfaces-with-active-admin/ I can connect to localhost:3000/ but when I connect to localhost:3000/admin I get page errors where there is supposed to be a user login... Started GET "/admin" for 127.0.0.1 at … | |
Hi everyone, I'm a bit new to Ruby *and* Rails, and I'm struggling with a task I'm trying to accomplish. I'm attempting to build a simple Rock-Paper-Scissors game in Ruby on Rails, and I'm a little lost as to where to begin. It seems to me that the app will … |
The End.