Welcome to Jonic Developer Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged ruby

0 votes
328 views
1 answer
    Hope all is well. I want to ajax call on _questions_form. It works without remote: true option, yet I am using actioncable and when I submit the form my ... if more info is needed, ask me to post them See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
253 views
1 answer
    What's the correct way to find the absolute path to a file from within a gem? In other words, let's say I'm in gem_install_path/mygem/lib/mygem.rb, and ... /mygem/foo/. What's the correct way to get that? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
312 views
1 answer
    Came across this code. def setup(&block) @setups << block end What does this line do? @setups << block Interested in what the does "<<". The manual ... the operator of double shift, but he is here with? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
472 views
1 answer
    To save space in the cloud how would you go about resizing and compressing an image preupload using activestorage? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
2.7k views
1 answer
    I'm trying to use the Google file picker to select a document and then update its permissions. I don't need access to all Drive files, just ... embed = doc[google.picker.Document.EMBEDDABLE_URL ]; } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
335 views
1 answer
    My Cucumber just won't find the step definitions. The file structure (Only the specs folder inside the Rails root) looks like this: -> specs -> features ... 0 Tell me if you need any additional infos. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
433 views
1 answer
    Is there a way to force a cucumber scenario to fail? I need to check for a few failing scenarios at the end of each of my tests. So I thought ... way to fail a cucumber test without raising an exception? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
405 views
1 answer
    I am building a RESTful Rails service with various CRUD endpoints. On one of the Create endpoints, the data I am passing in includes: ... action: ... am passing in? Am I doing something blatantly stupid? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
322 views
1 answer
    I'm using carrierwave and I want to change the directory where images are stored. Right now the image URL is /uploads/modelname/image/51/nameoffile.jpg ... path where images should be stored on heroku? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
362 views
1 answer
    I'm having trouble getting i18n to work on heroku. I set: I18n.default_locale = :de in my environment.rb and the translation is in config/locales/ ... machine either. Maybe someone has a solution to this? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
422 views
1 answer
    I am getting am empty document back from phantomjs. I am trying to use Capybara and Poltergeist for setting up the phantomjs driver for Capybara. I created ... "args":["http://www.smashingmagazine.com"]} See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
547 views
1 answer
    I am new on Ruby on Rails. My Ruby version is ruby 2.4.1p111 (2017-03-22 revision 58053) [x64-mingw32]. I have created a new project using rails new ... app server gem 'puma', '~> 3.7' Any Help? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
374 views
1 answer
    by searching to access my Postgres DB on Openshift, i'm currently facing problem using net-ssh. At this step - note that the installed Ruby version is 2.2 ... version of rhc)? (sorry for my bad english) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
339 views
1 answer
    When running rake spec on the command line for a large Rails project, I get a giant list of every rspec file that will be run. Is there a way to hide ... :default => :spec This did not solve the issue. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
429 views
1 answer
    I have the following command. I insert it on starting the rails server VARIABLE=development rails s How do I make this variable start automatically, ... and it would run automatically with that variable. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
393 views
1 answer
    I have seen Rails find method taking a block as Consumer.find do |c| c.id == 3 end Which is similar to Consumer.find(3). What are some of the use cases where we can actually use block for a find ? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
363 views
1 answer
    I'm trying to return a result to a view where the json does not include the root. I don't want to set this on all actions for this model,so therefore ... = for # Is there a nice way of doing this?? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
803 views
1 answer
    i may recieve these two strings: base = Base64.encode64(File.open("/home/usr/Desktop/test", "rb").read) => "YQo= " string = File.open("/home/ ... is the string is actually text or base64 encoded text.... See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
361 views
1 answer
    Is there any way to get Passenger running on a Windows machine? It doesn't appear so, but it seems like many Stackoverflow'ers have used Passenger a lot and I was wondering if its possible. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
483 views
1 answer
    I got a regex in my code, which is to match pattern of url and threw error: /^(http|https)://([w-]+.)+[w-]+([w- ./?%&=]*) ... error regarding this regex? What is the mechanism of Ruby regex interpreting? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
399 views
1 answer
    I'm trying to use skip_before_filter only if the app is in production mode. (I don't want my development instances public, and I want the app to ... skip the before_filter. Is there something I'm missing? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
421 views
1 answer
    I tried to install cocoapods on mac according to the instructions http://cocoapods.org/ , but got the error as below: $sudo gem install cocoapods ERROR: While ... version: 1.9.3 rake version: 10.2.2 See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
666 views
1 answer
    Right now I have :header => {:html => {:template => "layouts/pdf_header.html.erb"}} setting things up. Is there something I can pass in ... be different lengths and different numbers of pages every time. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
270 views
1 answer
    My delayed job is not working. I am trying to create an background task for a rake file using a delayed job that should run every 15 minute. I have ... work it starts but is not working the runall job of See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
351 views
1 answer
    I am trying to make the open_id_authentication plugin working. Initially was doing it with authlogic but abandoned because it feels like much more hassle the ... good advices on that. Thanks, Dmitriy. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
423 views
1 answer
    I'm using HTTParty to post information to a server using the following code: this_component = {"name" => "something", "ip" => "localhost", "logs" ... the above so that I could push this data successfully? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
275 views
1 answer
    I'm new to Ruby on Rails (new to programming altogether) and this is my first post on stack overflow. I want to thank everyone in advance because I have learned ... -04-23T19:31:23.878809+00:00 heroku[web.1]: Process exited with status 137...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
319 views
1 answer
    I have a Ruby script that generates a SQLite3 database. I want to be able to generate an "output.csv" file containing one of the database tables. Is there a way to handle that in Ruby? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to Jonic Developer Community for programmer and developer-Open, Learning and Share

548k questions

547k answers

4 comments

37.2k users

...