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 buyers can be created automatically without approval by an administrator. Seller accounts will require approval. - Sellers can have multiple listings, but each listing must be approved by an administrator before going live in the system. - For each apartment listing, seller can fill out information for a number of …

Member Avatar
Member Avatar
+0 forum 4

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 I first got it working, as you can see it's in straight lines and there's no colourisation difference ## Fixed colourisation## [fixed colourisation][2] I realised what I was doing wrong and fixed the colourisation problem by flipping the case select, I should have been checking for the highest hight first …

Member Avatar
Member Avatar
+0 forum 1

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

Member Avatar
Member Avatar
+0 forum 2

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 ''watir'' for main: Object <NameError>** I have reserached this, but am unable to determine what is causing this error. Version: ruby 2.2.6p396 Script: ` require ‘watir’ require ‘watir-webdriver’ Watir::Browser.default = “firefox” browser = Watir::Browser.start "https://www.website.com" browser.link(:text, "Register").click browser.button(:value,"I Agree").click browser.button(:value,"I Agree").click browser.text_field(:id, "username").set("bbb") browser.text_field(:id, "password").set("bbb") browser.text_field(:id, "password2").set("ccc") browser.text_field(:id, "email").set("hhh") browser.text_field(:id, …

Member Avatar
Member Avatar
+0 forum 8

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"><%= @stuff.each do || stuff.name %></p>) back to the database and store it to show it's working. Basically in Sinatra, if you want to display something as output you do something like this -> application_controller.rb get '/items' do erb :items #for example end #Actually this is items.erb for instance. I can't …

Member Avatar
Member Avatar
+0 forum 1

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 to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the &lt;serviceDebug&gt; configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft …

Member Avatar
+0 forum 0

[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]

Member Avatar
Member Avatar
+0 forum 4

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

Member Avatar
Member Avatar
+0 forum 3

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 from March-9, 2016 to June-29, 2016** I already tried this with gem 'sidekiq', '~> 4.1' and succefully performed active job. but I am not able to schedule it. I also tried gem 'whenever', :require => false but it creates static crone job which constantly run on spcific time interval. not …

Member Avatar
+0 forum 0

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 sort. I have seen some javascript drag ang drop thingys before...

Member Avatar
Member Avatar
+0 forum 3

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 ruby. Now since I am more experienced with php, I thought it'd be wise to pass the ruby data back to php before I can write to the log file. Below is my code; // Call ruby script with watir/selenium webdriver to run test function run_test ($browser, $country_code, $test) { …

Member Avatar
+0 forum 0

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!

Member Avatar
Member Avatar
+0 forum 2

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 support so, be my guest and follow me...!

Member Avatar
+0 forum 0

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 into MySQL and flagged "ICD9Code" as primary. When I dumped the schema, I got this: create_table "icd9s", primary_key: "ICD9Code", force: :cascade do |t| t.string "ShortDescription", limit: 128, null: false t.string "LongDescription", limit: 255, null: false end add_index "icd9s", ["ICD9Code"], name: "index_icd9s_on_ICD9Code", unique: true, using: :btree Here's my problem - the …

Member Avatar
+0 forum 0

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???

Member Avatar
+0 forum 0

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 in migration file. Please help!!!

Member Avatar
Member Avatar
+0 forum 3

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 RibbitsController < ApplicationController def create @ribbit = Ribbit.create(user_ribbits) @ribbit.userid = current_user.id if @ribbit.save redirect_to current_user else flash[:error] = "Problem!" redirect_to current_user end end private def user_ribbits params.require(:ribbit).permit(:content, :userid) end end The request given to the app: Parameters: {"utf8"=>"✓", "authenticity_token"=>"dwVmjDNO4GOowphGFgChMDBxBfvka+M/xSUHvJMECzwxtv4NF6OuWtiaX74NLz91OwQJ9T9+wm7yMiPQ0BLpGA==", "ribbit"=>{"content"=>"hi. test.\r\n"}, "commit"=>"Ribbit!"} The **sessions** controller: class SessionsController < ApplicationController def …

Member Avatar
Member Avatar
+0 forum 3

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" => "Token token=XXXXXX" } request = Net::HTTP::Get.new(uri.request_uri, headers) response = http.request(request) @response = response.body @response = response.body Regards

Member Avatar
Member Avatar
+0 forum 19

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.

Member Avatar
+0 forum 0

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). I could not figure it out what method to apply it.

Member Avatar
Member Avatar
+0 forum 1

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 run sass-v in cmd i got ruby.exe: No such file or directory -- c:/Ruby21/bin/sass (LoadError). i am using windows.. can you anyone please guide me to install sass manually

Member Avatar
Member Avatar
+0 forum 1

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' => 'sessions#new' post 'login' => 'sessions#create' delete 'logout' => 'sessions#destroy' resources :users resources :questions #resources :choices get "quiz/index" post "quiz/start" get "quiz/question" post "quiz/question" post "quiz/answer" get "quiz/end" post "choices/create" post "choices/destroy" resources :sessions, only: [:new, :create, :destroy] Logout Code: <%= link_to "Log out", logout_path , method: "delete" Note: This …

Member Avatar
Member Avatar
+0 forum 2

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...

Member Avatar
+0 forum 0

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 help t get rid out from this.

Member Avatar
+0 forum 0

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.

Member Avatar
Member Avatar
+0 forum 1

hi, is this forum functional, i will like to brush up my not too grounded ruby knowledge.....

Member Avatar
Member Avatar
+0 forum 4

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!!

Member Avatar
Member Avatar
-2 forum 4

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 included the code below for viewing, any mistakes you see or pointers would be a great help. Here's what I have to do: Write a user defined function (to_array) that converts a String object to an array Write a method (get_permulations) that inputs an array of single characters (like ["j", …

Member Avatar
Member Avatar
+1 forum 3

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 "," and below each header print all the values of corresponding array. Since some arrays have more elements, for the arrays that have less elements print blank like below. A,B,C,D HYU,TU6,11,1 ,,9,11 ,,8, ,,2, Thanks in advance for any help.

Member Avatar
Member Avatar
+0 forum 4

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 column puts A << "-" << B Thanks in advance for any help.

Member Avatar
Member Avatar
+0 forum 18

The End.