Rails 5.2.2 web console does not show up












0















No matter what I try I cannot make the web console appear on any page although I have put <%= console %> inside the body in application.htm.erb.



I am using Rails v5.2.2 and web console v3.7.



I have tried different version of rails/web console with no success.



Any ideas?



My Gemfile



source 'https://rubygems.org'

gem 'rails', '5.2.2'
gem 'puma', '3.9.1'

# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'


.......



group :development, :test do
gem 'sqlite3', '1.3.13'
gem 'byebug', '9.0.6', platform: :mri
end

group :development do
gem 'web-console'
gem 'listen', '3.1.5'
gem 'spring', '2.0.2'
gem 'spring-watcher-listen', '2.0.1'
end

group :production do
gem 'pg', '0.20.0'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
#gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]


logs



Started GET "/users" for 80.107.134.220 at 2019-01-18 13:21:45 +0000
Cannot render console from 80.107.134.220! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by UsersController#index as HTML
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
Rendering users/index.html.erb within layouts/application
User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY fullname asc
Rendered users/index.html.erb within layouts/application (4.9ms)
Setting Exists (0.2ms) SELECT 1 AS one FROM "settings" LIMIT ? [["LIMIT", 1]]
Setting Load (0.2ms) SELECT "settings".* FROM "settings" ORDER BY "settings"."id" ASC LIMIT ? [["LIMIT", 1]]
Tgroup Load (0.1ms) SELECT "tgroups".* FROM "tgroups"
Rendered layouts/_navigation.html.erb (2.3ms)
Rendered layouts/_footer.html.erb (0.4ms)
Completed 200 OK in 68ms (Views: 64.5ms | ActiveRecord: 0.8ms)


Started GET "/settings" for 80.107.134.220 at 2019-01-18 13:21:47 +0000
Cannot render console from 80.107.134.220! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by PagesController#settings as HTML
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
Setting Exists (0.1ms) SELECT 1 AS one FROM "settings" LIMIT ? [["LIMIT", 1]]
Setting Load (0.1ms) SELECT "settings".* FROM "settings" ORDER BY "settings"."id" ASC LIMIT ? [["LIMIT", 1]]
Rendering pages/settings.html.erb within layouts/application
Rendered pages/settings.html.erb within layouts/application (1.7ms)
CACHE Setting Exists (0.0ms) SELECT 1 AS one FROM "settings" LIMIT ? [["LIMIT", 1]]
CACHE Setting Load (0.0ms) SELECT "settings".* FROM "settings" ORDER BY "settings"."id" ASC LIMIT ? [["LIMIT", 1]]
Tgroup Load (0.2ms) SELECT "tgroups".* FROM "tgroups"
Rendered layouts/_navigation.html.erb (2.3ms)
Rendered layouts/_footer.html.erb (0.3ms)
Completed 200 OK in 53ms (Views: 48.2ms | ActiveRecord: 0.7ms)









share|improve this question

























  • Have you any logs?

    – rails_dev
    Jan 18 at 12:59











  • Posted s couple....

    – kouroubel
    Jan 18 at 13:25











  • I just added probable solution. Let's check.

    – rails_dev
    Jan 18 at 13:29
















0















No matter what I try I cannot make the web console appear on any page although I have put <%= console %> inside the body in application.htm.erb.



I am using Rails v5.2.2 and web console v3.7.



I have tried different version of rails/web console with no success.



Any ideas?



My Gemfile



source 'https://rubygems.org'

gem 'rails', '5.2.2'
gem 'puma', '3.9.1'

# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'


.......



group :development, :test do
gem 'sqlite3', '1.3.13'
gem 'byebug', '9.0.6', platform: :mri
end

group :development do
gem 'web-console'
gem 'listen', '3.1.5'
gem 'spring', '2.0.2'
gem 'spring-watcher-listen', '2.0.1'
end

group :production do
gem 'pg', '0.20.0'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
#gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]


logs



Started GET "/users" for 80.107.134.220 at 2019-01-18 13:21:45 +0000
Cannot render console from 80.107.134.220! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by UsersController#index as HTML
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
Rendering users/index.html.erb within layouts/application
User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY fullname asc
Rendered users/index.html.erb within layouts/application (4.9ms)
Setting Exists (0.2ms) SELECT 1 AS one FROM "settings" LIMIT ? [["LIMIT", 1]]
Setting Load (0.2ms) SELECT "settings".* FROM "settings" ORDER BY "settings"."id" ASC LIMIT ? [["LIMIT", 1]]
Tgroup Load (0.1ms) SELECT "tgroups".* FROM "tgroups"
Rendered layouts/_navigation.html.erb (2.3ms)
Rendered layouts/_footer.html.erb (0.4ms)
Completed 200 OK in 68ms (Views: 64.5ms | ActiveRecord: 0.8ms)


Started GET "/settings" for 80.107.134.220 at 2019-01-18 13:21:47 +0000
Cannot render console from 80.107.134.220! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by PagesController#settings as HTML
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
Setting Exists (0.1ms) SELECT 1 AS one FROM "settings" LIMIT ? [["LIMIT", 1]]
Setting Load (0.1ms) SELECT "settings".* FROM "settings" ORDER BY "settings"."id" ASC LIMIT ? [["LIMIT", 1]]
Rendering pages/settings.html.erb within layouts/application
Rendered pages/settings.html.erb within layouts/application (1.7ms)
CACHE Setting Exists (0.0ms) SELECT 1 AS one FROM "settings" LIMIT ? [["LIMIT", 1]]
CACHE Setting Load (0.0ms) SELECT "settings".* FROM "settings" ORDER BY "settings"."id" ASC LIMIT ? [["LIMIT", 1]]
Tgroup Load (0.2ms) SELECT "tgroups".* FROM "tgroups"
Rendered layouts/_navigation.html.erb (2.3ms)
Rendered layouts/_footer.html.erb (0.3ms)
Completed 200 OK in 53ms (Views: 48.2ms | ActiveRecord: 0.7ms)









share|improve this question

























  • Have you any logs?

    – rails_dev
    Jan 18 at 12:59











  • Posted s couple....

    – kouroubel
    Jan 18 at 13:25











  • I just added probable solution. Let's check.

    – rails_dev
    Jan 18 at 13:29














0












0








0








No matter what I try I cannot make the web console appear on any page although I have put <%= console %> inside the body in application.htm.erb.



I am using Rails v5.2.2 and web console v3.7.



I have tried different version of rails/web console with no success.



Any ideas?



My Gemfile



source 'https://rubygems.org'

gem 'rails', '5.2.2'
gem 'puma', '3.9.1'

# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'


.......



group :development, :test do
gem 'sqlite3', '1.3.13'
gem 'byebug', '9.0.6', platform: :mri
end

group :development do
gem 'web-console'
gem 'listen', '3.1.5'
gem 'spring', '2.0.2'
gem 'spring-watcher-listen', '2.0.1'
end

group :production do
gem 'pg', '0.20.0'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
#gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]


logs



Started GET "/users" for 80.107.134.220 at 2019-01-18 13:21:45 +0000
Cannot render console from 80.107.134.220! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by UsersController#index as HTML
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
Rendering users/index.html.erb within layouts/application
User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY fullname asc
Rendered users/index.html.erb within layouts/application (4.9ms)
Setting Exists (0.2ms) SELECT 1 AS one FROM "settings" LIMIT ? [["LIMIT", 1]]
Setting Load (0.2ms) SELECT "settings".* FROM "settings" ORDER BY "settings"."id" ASC LIMIT ? [["LIMIT", 1]]
Tgroup Load (0.1ms) SELECT "tgroups".* FROM "tgroups"
Rendered layouts/_navigation.html.erb (2.3ms)
Rendered layouts/_footer.html.erb (0.4ms)
Completed 200 OK in 68ms (Views: 64.5ms | ActiveRecord: 0.8ms)


Started GET "/settings" for 80.107.134.220 at 2019-01-18 13:21:47 +0000
Cannot render console from 80.107.134.220! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by PagesController#settings as HTML
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
Setting Exists (0.1ms) SELECT 1 AS one FROM "settings" LIMIT ? [["LIMIT", 1]]
Setting Load (0.1ms) SELECT "settings".* FROM "settings" ORDER BY "settings"."id" ASC LIMIT ? [["LIMIT", 1]]
Rendering pages/settings.html.erb within layouts/application
Rendered pages/settings.html.erb within layouts/application (1.7ms)
CACHE Setting Exists (0.0ms) SELECT 1 AS one FROM "settings" LIMIT ? [["LIMIT", 1]]
CACHE Setting Load (0.0ms) SELECT "settings".* FROM "settings" ORDER BY "settings"."id" ASC LIMIT ? [["LIMIT", 1]]
Tgroup Load (0.2ms) SELECT "tgroups".* FROM "tgroups"
Rendered layouts/_navigation.html.erb (2.3ms)
Rendered layouts/_footer.html.erb (0.3ms)
Completed 200 OK in 53ms (Views: 48.2ms | ActiveRecord: 0.7ms)









share|improve this question
















No matter what I try I cannot make the web console appear on any page although I have put <%= console %> inside the body in application.htm.erb.



I am using Rails v5.2.2 and web console v3.7.



I have tried different version of rails/web console with no success.



Any ideas?



My Gemfile



source 'https://rubygems.org'

gem 'rails', '5.2.2'
gem 'puma', '3.9.1'

# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'


.......



group :development, :test do
gem 'sqlite3', '1.3.13'
gem 'byebug', '9.0.6', platform: :mri
end

group :development do
gem 'web-console'
gem 'listen', '3.1.5'
gem 'spring', '2.0.2'
gem 'spring-watcher-listen', '2.0.1'
end

group :production do
gem 'pg', '0.20.0'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
#gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]


logs



Started GET "/users" for 80.107.134.220 at 2019-01-18 13:21:45 +0000
Cannot render console from 80.107.134.220! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by UsersController#index as HTML
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
Rendering users/index.html.erb within layouts/application
User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY fullname asc
Rendered users/index.html.erb within layouts/application (4.9ms)
Setting Exists (0.2ms) SELECT 1 AS one FROM "settings" LIMIT ? [["LIMIT", 1]]
Setting Load (0.2ms) SELECT "settings".* FROM "settings" ORDER BY "settings"."id" ASC LIMIT ? [["LIMIT", 1]]
Tgroup Load (0.1ms) SELECT "tgroups".* FROM "tgroups"
Rendered layouts/_navigation.html.erb (2.3ms)
Rendered layouts/_footer.html.erb (0.4ms)
Completed 200 OK in 68ms (Views: 64.5ms | ActiveRecord: 0.8ms)


Started GET "/settings" for 80.107.134.220 at 2019-01-18 13:21:47 +0000
Cannot render console from 80.107.134.220! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by PagesController#settings as HTML
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
Setting Exists (0.1ms) SELECT 1 AS one FROM "settings" LIMIT ? [["LIMIT", 1]]
Setting Load (0.1ms) SELECT "settings".* FROM "settings" ORDER BY "settings"."id" ASC LIMIT ? [["LIMIT", 1]]
Rendering pages/settings.html.erb within layouts/application
Rendered pages/settings.html.erb within layouts/application (1.7ms)
CACHE Setting Exists (0.0ms) SELECT 1 AS one FROM "settings" LIMIT ? [["LIMIT", 1]]
CACHE Setting Load (0.0ms) SELECT "settings".* FROM "settings" ORDER BY "settings"."id" ASC LIMIT ? [["LIMIT", 1]]
Tgroup Load (0.2ms) SELECT "tgroups".* FROM "tgroups"
Rendered layouts/_navigation.html.erb (2.3ms)
Rendered layouts/_footer.html.erb (0.3ms)
Completed 200 OK in 53ms (Views: 48.2ms | ActiveRecord: 0.7ms)






ruby-on-rails web-console






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 18 at 13:23







kouroubel

















asked Jan 18 at 12:41









kouroubelkouroubel

287




287













  • Have you any logs?

    – rails_dev
    Jan 18 at 12:59











  • Posted s couple....

    – kouroubel
    Jan 18 at 13:25











  • I just added probable solution. Let's check.

    – rails_dev
    Jan 18 at 13:29



















  • Have you any logs?

    – rails_dev
    Jan 18 at 12:59











  • Posted s couple....

    – kouroubel
    Jan 18 at 13:25











  • I just added probable solution. Let's check.

    – rails_dev
    Jan 18 at 13:29

















Have you any logs?

– rails_dev
Jan 18 at 12:59





Have you any logs?

– rails_dev
Jan 18 at 12:59













Posted s couple....

– kouroubel
Jan 18 at 13:25





Posted s couple....

– kouroubel
Jan 18 at 13:25













I just added probable solution. Let's check.

– rails_dev
Jan 18 at 13:29





I just added probable solution. Let's check.

– rails_dev
Jan 18 at 13:29












1 Answer
1






active

oldest

votes


















0














Log says, that 80.107.134.220 is not allowed.
So, add this to development.rb, if your application works in development environment.



class Application < Rails::Application
config.web_console.whitelisted_ips = '80.107.134.220'
end





share|improve this answer
























  • OK that was it. Thank you very much!!!

    – kouroubel
    Jan 18 at 13:41











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54254271%2frails-5-2-2-web-console-does-not-show-up%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Log says, that 80.107.134.220 is not allowed.
So, add this to development.rb, if your application works in development environment.



class Application < Rails::Application
config.web_console.whitelisted_ips = '80.107.134.220'
end





share|improve this answer
























  • OK that was it. Thank you very much!!!

    – kouroubel
    Jan 18 at 13:41
















0














Log says, that 80.107.134.220 is not allowed.
So, add this to development.rb, if your application works in development environment.



class Application < Rails::Application
config.web_console.whitelisted_ips = '80.107.134.220'
end





share|improve this answer
























  • OK that was it. Thank you very much!!!

    – kouroubel
    Jan 18 at 13:41














0












0








0







Log says, that 80.107.134.220 is not allowed.
So, add this to development.rb, if your application works in development environment.



class Application < Rails::Application
config.web_console.whitelisted_ips = '80.107.134.220'
end





share|improve this answer













Log says, that 80.107.134.220 is not allowed.
So, add this to development.rb, if your application works in development environment.



class Application < Rails::Application
config.web_console.whitelisted_ips = '80.107.134.220'
end






share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 18 at 13:27









rails_devrails_dev

1967




1967













  • OK that was it. Thank you very much!!!

    – kouroubel
    Jan 18 at 13:41



















  • OK that was it. Thank you very much!!!

    – kouroubel
    Jan 18 at 13:41

















OK that was it. Thank you very much!!!

– kouroubel
Jan 18 at 13:41





OK that was it. Thank you very much!!!

– kouroubel
Jan 18 at 13:41


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54254271%2frails-5-2-2-web-console-does-not-show-up%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Homophylophilia

Updating UILabel text programmatically using a function

Cloud Functions - OpenCV Videocapture Read method fails for larger files from cloud storage