bst365体育投注网址大全

Questions tagged [ruby-on-rails]

Ruby on Rails is an open source full-stack web application framework written in Ruby. It follows the popular MVC framework model and is known for its "convention over configuration" approach to application development.

Filter by
Sorted by
Tagged with
-4
votes
1answer
22 views

Why is <a href=“#abc”>Link</a> sending a GET request to the server?

I have a very simple page: <a href="#abc">ABC</a> <div id="abc"></a> Why is this link sending a GET request to the server? And more importantly, how can I ...
0
votes
0answers
12 views

Separate Rails Auth Server and Resource Server using Password flow? HOW?

I'm new to OAuth2 and I would like to understand it. I want to build a platform where multiple apps integrate with one Auth Server like this: 1st app is the Authorization Server which Its job is just ...
-2
votes
2answers
25 views

Rails convert binary string to .docx

I am working in rails and I downloaded a word document from OneDrive through graph API and it returns a binary string which is a collection of files. I need to convert this string into .docx file and ...
1
vote
0answers
10 views

Middleman shows syntax error when using a link_to block

I'm using Middleman 4.2 with Middleman-blog 4.0.2. When I have: <% blog.tags.each do |tag, articles| %> <%= link_to "#{tag.titleize} - #{articles.size}", tag_path(tag) %> <%...
0
votes
1answer
25 views

how to export assets from ruby gem to rails

I am building a gem (see here for full source code) and I am having issues exporting assets to Rails. The tests I wrote in the gem work well, but when I install the gem on Rails some of the assets are ...
0
votes
0answers
13 views

Warning: URI.escape is obsolete. I work on Mojave Mac OS and have cocoapods 1.9.3 installed

I get this following warning on running pod install. Analyzing dependencies /Users/Amith/.rvm/rubies/ruby-2.7.0/lib/ruby/gems/2.7.0/gems/cocoapods-core-1.9.3/lib/cocoapods-core/cdn_source.rb:342: ...
0
votes
1answer
17 views

Is it possible to embed a Stripe Dashboard in a Rails app? [closed]

I am working on a rails app in which I use Stripe Elements. I'm also using the rails-admin gem for the admin to manage the website. I have links on the admin dashboard to the Stripe, Mailjet, Google ...
0
votes
0answers
13 views

Rails 6: Include 3rd Party Yarn Library via Webpacker

I added jQuery to Webpack and it seems to work. I tried to add a JS Library called "Swiper", but I just don't get how to include it. Here is what I did: yarn add swiper (success) environment....
0
votes
1answer
29 views

how to pass reference id in model while importing excel file in rails

i am importing data from excel file into two different table based on id column in excel file. project has one_to_many association with stage and stage has one_to_many association with task but i am ...
0
votes
1answer
18 views

How to get the div tag that is loaded after sometime using nokogiri?

i have been trying to do web scraping using nokogiri.I want to get the content that is loaded after some time due to javascript may be..i have tried sleep method but i dont know where am i going wrong....
-1
votes
1answer
15 views

Install HomeBrew and ruby LoadError question [closed]

When I install HomeBrew in install.rb file, the ruby was callback: Traceback (most recent call last): ruby: no Ruby script found in input (LoadError) Thanks all... Reference: Homebrew installation ...
0
votes
0answers
18 views

Why does clicking a Rails link_to anchor with an href to the server not produce a DomContentLoaded event?

Whenever my web page is refreshed, I need to do some JavaScript setup (click handlers, etc.). Where I link to a different page in a JS click handler using window.location.href=..., the ...
1
vote
1answer
15 views

Bootstrap Responsive Media Query for Showing and Centering Elements Not Working on Ralis

I currently am working with Bootstrap V4 and I'm trying to create a responsive navbar. On ipad and all mobile devices, I want my navbar brand/title to be centered aligned and for the links to ...
-2
votes
2answers
54 views

getting Id from created record in rails

New web developer here, and I think I may be missing some very fundamental knowledge. Given the code > def create > @post = Post.new(post_params) > if @post.save > ...
0
votes
1answer
31 views

In Rails 6, how can I use a route parameter as the controller method name?

I have a reports controller with several actions, one for each kind of report. I was planning to have them route like this: /reports/:report_type I'd like the report_type string fragment to be used as ...

15 30 50 per page
1
2 3 4 5
21258