322 Topics
![]() | |
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 … | |
I've been trying to create the diamond square algorithm in ruby and whilst it works (that is to say it doesn't error) it doesn't output as expected, so far here's the output at various states: # So far# ## First attempt ## [First Attempt][1] This is the output of when … | |
Hi all, This is my array of hash [{"gate_pass_type_id"=>2, "tag"=>0, "total"=>2000}, {"gate_pass_type_id"=>125, "tag"=>0, "total"=>300}, {"gate_pass_type_id"=>661, "tag"=>0, "total"=>750}, {"gate_pass_type_id"=>661, "tag"=>2, "total"=>100}] I want to convert it into [2 => { "0"=> 2000}, 125=> {"0"=>300}, 661=>{"0" =>750, "2"=>100}] Is any simple way without using so much loops | |
I am attempting to properly install and run a Ruby script. I have not worked in Ruby for some time and am not sure what I'm missing; it worked perfectly in the past (on a work machine.) I am receiving the following error message: **<Main> undefined local variable or method … | |
I understand how to generate objects from the database, using Sinatra with formatting, and I understand from tutorials how to use POST to send information back, but I don't understand how to use POST to transfer information from the browser (for instance from a text field, or inside <p id="stufftotransfer"><%= … | |
Hi everyone, I have to integrate SOAP api using SAVON gem When I am calling url it gives reponse and operations too But When I call methods and posting data it gives me error client = Savon.client(wsdl:"http://netconnect.bluedart.com/Demo/ShippingAPI/WayBill/WayBillGeneration.svc?wsdl") client.operations => [:generate_way_bill, :import_data, :cancel_waybill] client.call(:generate_way_bill, message: data) => The server was unable … | |
[B] Can any one just give a video tutorial link to deploy ...a complete ror app..or any text tuts for tat.... [COLOR="Red"]Thanks in advance[/COLOR] .[/B] | |
Hi, I have two tables as employee id int primary key, purchase_order_product int, bundle int fabric_bundles id int primary key, purchase_order_product int, bundle int, quantity I want to make assciation between employee and fabric_bundles via purchase_order_product and bundle | |
I am new to Ruby On Rails. I am facing truble on creating a long running background job. my target is to send notification to all the active users between two given dates on specific given hour interval. Example: **send notification message after every 8 hours to all active users … | |
Greetings earthlings, I am a learning programming. My main languages are php & javascript. I was wondering if javascript(maybe with html5) could be enough to create a wix.com type wysiwyg or not, does it require a total other language like c++ or java , rubi ? or something of the … | |
Dear all, So I am trying to run a watir test application. Everything seems to be going well except I need to log each step that happens. I am able to log using the php script, but have not yet figured out how to write to a log file using … | |
So, I've some free time in December and want to make a web-app that lets people login, put books they've read, review the books they've read etc. But, I'm not sure how and where to start? What Languages/Frameworks to use? Any help would be appreciated. Thanks! ![]() | |
Hello everyone! I am rubydoggy a wannabe remote rails engineer and i challenged myself to create 10 projects (5 of them open source) to fill my portfolio and my github account. I have already launch a minimal Blog and i am planning the first project. I need a lot of … | |
I have a MySQL table with a string-based primary key. I created it with an ActiveRecord::Migration as follows: create_table( "icd9s", id: false) do |t| t.string "ICD9Code", limit: 7, null: false t.string "ShortDescription", limit: 128, null: false t.string "LongDescription", limit: 255, null: false end add_index(:icd9s, :ICD9Code, unique: true) Then I went … | |
Hi all, My project is on ruby on rails. I have one of ruby api returns json.jbuilder But I want that my api should not return json , it will display html.erb file Is anybody can help me??? | |
Hi , I want to create a class in lib folder , from that class want to create mysql view . such as in mysql CREATE VIEW rocket_current_activities AS SELECT rocket_activities.status AS status from rocket_activities.... This can be do in mysql but how to do from rails. I dont want … | |
I have created an app with simple login authentication, it is actually a twitter clone. The user logs in and access the pages, etc. But when the user posts something from there profile. It gives an error NoMethodError in RibbitsController#create undefined method `userid=' The error is around line 5: class … | |
How can I convert this Ruby Gem to PHP? token = "your_nypl_api_token" client = NyplRepo::Client.new(token) ``` ``` token = "your_nypl_api_token" options = {:debug => true, :server_url => "http://api.repo.nypl.org/api/v1"} client = client = NyplRepo::Client.new(token, options) Also url = "http://api.repo.nypl.org/api/v1/items/8568ccd0-c614-012f-1d74-58d385a7bc34.xml" uri = URI.parse(url) http = Net::HTTP.new(uri.host, uri.port) headers = { "Authorization" => … | |
I'm trying to implement upload on [my application](http://github.com/bl4ckdu5t/vitabiotics). I'm hosting the application on Heroku, and I'm using S3. I've created a bucket and I've followed [this guide](https://devcenter.heroku.com/articles/paperclip-s3) trying to make it all work. But it still fails and I get no errors. The uploaded images never get to the bucket. | |
Hello, I am doing this image processing programming for pseudocoloring. aFile = File.new("mix.lut","w+") for i in 0...256 red = i*i/255 green = Math.sqrt(i). to_i blue = i aFile.puts "#{red} #{green} #{blue}" end aFile.close I made this simple color LUT, and i want to apply it to an image (RGB image). … | |
Hi All,i am using sass in my current project, due to some restrictions iam not able to install sass in ruby using gem install sass.. i have downloaded sass from github (https://github.com/sass/sass) not sure where to place this sass in ruby.. tried in ruby->bin folder but not use when i … | |
Logout functionality does not working properly in "Production Environment". The logout Function is called in Production Environment by Started GET "/logout" for 127.0.0.1 at 2014-11-11 14:48:52 +0530 instead of Started DELETE "/logout". Note: I don't use Devise Gem in my application. routes.rb root 'welcome#home' get 'signup' => 'users#new' get 'login' … | |
Hi Guys, I'm a newbie to rails. I'm bit confused about the following. What is the difference between RSpec and Minitest? Which will be easy and effective to use? Thanks in advance... | |
Hi Guys, I'm a newbie to ROR.and I'm developing a sample app for practising. My app is for Quiz game qith time constrains. But, I don't know how to set a timer control for questions. I'm seeking for a solution for that to add timer control. I hope you will … | |
Why is Ruby so special? How does it impact Mobile App Development? I don't quite understand how or why rails and ruby is relevant. I'm very new to understanding how and why Ruby is very relevant in Silicon Valley. | |
hi, is this forum functional, i will like to brush up my not too grounded ruby knowledge..... | |
Personally I think Python is better then ruby because it runs on the Django framwork and it can do more. But I wanted some debate from ruby devs so bring it on!! | |
Hey guys, I've been writing a program that will take user jumbled input, find it in a given file, and print the unjumbled word. I've written most the code up to this point but I haven't been able to finish it and am stuck at how to fix it. I've … | |
Hello to all, HAving a hash where its keys are associated with arrays like below: myHash = {"A"=>["HYU"], "B"=>["TU6"], "C"=>["11", "09","88","2"], "D"=>["01", "11"]} Each key represent one header and the arrays elements represent the values for each header. How to print each key in different column separated by comma "," … | |
Hello to all, Having to arrays of the same size like below. A = ["SL","MW","OP"] B = ["RU","YF","L2"] How can I concatenate in columns to print in parallel like below? SL - RU MW - YF OP - L2 I've tried with code below but is printing all in one … | |
I'm trying to write a search enigne. Nothing fancy like google or so, just a simple one for educational purposes. I have done a little research and I know that Google uses Python, Java and C++. I on the other hand know C++, PHP, some Java and C# and even … | |
Hi! I'm not a web developer, but I'm a blogger and I would like some tips on how to create a 404 error message or to do something about this message feom Blogger: "Sorry, the page you were looking for in this blog does not exist." I would like to … | |
Hello to all, I have a ruby script with a very long hash with more than 300 associations. The script looks like below: #!/usr/bin/env ruby Array_A = [] myHash = { "x1" => "2", "x2" => "0", "x3" => "1", . . . "X350" => "1" } myHash.keys.each do |z| … | |
I'm attemping to clone and install a Ruby application from github. I have it cloned, and am trying to run the "bundle install" command, but it failed the first time because of an issue with Rake. I installed it manually using "gem install rake -v '10.1.1'". That command was sucessful, … | |
def y we need this in ruby i am beginner of ruby i donot understand what is use of def with out this we make code also i think according to my knowledge it is reserve word | |
I am a newbie programming Ruby. I have the below code. Method sum_to_n? which takes an array of integers and an additional integer, n, as arguments and returns true if any two elements in the array of integers sum to n. It should return true for the empty array with … | |
Hi! I would like to know if anyone here have attempted installing Redmine V2.3.\* on IIS? If you did, can you please direct me to the right direction. What are the things should be done? I had tried it on my own, but I kept on having errors like "Gem::Installer::ExtensionBuildError: … ![]() | |
Hello all I have decided that I will participate in an online coding contest.i just want to ask which programming language is appropriate or powerful for a programming contest?ruby or python?i want to participate with python or ruby as my primary language.i have a little exp. with python but don't … | |
Hello daniweb community i'm new here and glad to join this amazing website. Well want I need to understand is how I learn to become a competent computer science major and learn to write code very well. I have always had a knack for this and I love it alot … | |
I need to add the following features to my existing code (posted below) in Rails using Jquery, JSON, Ruby and HTML. I have a lot of ideas and researched a bit but Itd be great if someone can help me with integrating them: I need to add a feature to … ![]() | |
Hi i m just learning rails and i want to import my sql data to rails .. i have created database and i had run rake to create shema etc... i m using windows 7 thx | |
Please answer these questions for me: Q1: Write a method, pow, that takes two (non-negative, integer) numbers, base and exponent and returns base raised to the exponent power. (No fair using Ruby's base ** exponent notation!). Q2: Write a method, sum which takes an array of numbers and returns the … | |
I want to make a game somwhat akin in size and complexity to SNES Zelda. | |
Hey! Here is my update action in users_controller.rb and I want to test it with RSpec but it doesnt seem to work for me. Can somebody notice a mistake? def update @user = User.find(params[:id]) respond_to do |format| if @user.update_attributes(params[:user]) format.html { redirect_to edit_user_path(@user), :notice => "Your settings were successfully updated."} … ![]() | |
Somewhat new to rails and trying to build something to learn, but having an issue. I have successfully created one form field that reads from a collection of categories. I generated scaffolding for the categories and two fields catId and name. After plugging in the field everything worked perfectly. I … ![]() | |
I need to sort tables with dynamical content with rails. I could use the RailsCast tutorial ([http://railscasts.com/episodes/228-sortable-table-columns](http://railscasts.com/episodes/228-sortable-table-columns)) but as I'm not using any specific method in a controller, it doesn't seem appropriate solution. I found out about the jquery tablesorter, but it doesn't seem to work. Where the solution might … | |
I hear that RUby can be used for desktop development, yet I haven't seen any showcases. I am currently learning C++ but have always had my eyes on Ruby. Is it true? I know Ruby On Rails is for web development. What are the capabilities of ROR? Thanks in advance. | |
hello it's been awhile .. it's my first time using ruby(on Rails), and i've downloaded what is needed(i think, based on my searches), Ruby, Rails and gem, but i'm not sure if they are properly installed because they don't seem to appear (?) Also it's my first time using Aptana, … | |
HI guys... i have installed solr 4.2 in my system.. i wanted to integrate it with rails and thus, included the 2 sunspot gems.. gem 'sunspot_rails', '~>2.0.0' gem 'sunspot_solr', '~>2.0.0' now, the local instance of solr present in sunspot_solr gem can be found at "http://localhost:8982/solr" .. when checking the information, … |
The End.