我正在使用linuxbrew在ubuntu上安装postgresql:
brew install postgresql
Run Code Online (Sandbox Code Playgroud)
它似乎工作正常,但之后因为我第一次安装PostgreSQL我尝试创建一个数据库:
initdb /usr/local/var/postgres -E utf8
Run Code Online (Sandbox Code Playgroud)
但它返回为:
initdb: command not found
Run Code Online (Sandbox Code Playgroud)
我试着运行命令 sudo but that doesn't helped
我真的很擅长轨道和编程,我正在努力教自己.我用bootstraps创建了一个简单的rails应用程序.面临的问题是我添加了带固定顶部的bootstrap导航栏,然后我添加了
body {
padding-top: 60px;
Run Code Online (Sandbox Code Playgroud)
}
但我陷入了错误:
Sass::SyntaxError in Pages#dashboard
Showing C:/Sites/tapo/app/views/layouts/application.html.erb where line #5 raised:
Invalid CSS after "...trap-sprockets"": expected selector or at-rule, was "@import "bootst..."
Rails.root: C:/Sites/tapo
Application Trace | Framework Trace | Full Trace
app/assets/stylesheets/application.css.scss:20
app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb___552321104_73620060'
Run Code Online (Sandbox Code Playgroud)
我的application.html.erb
<!DOCTYPE html>
<html>
<head>
<title>Tapo</title>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %>
</head>
<body>
<nav class="navbar navbar-default navbar-fixed-top">
<!-- Brand and toggle get grouped for better mobile …Run Code Online (Sandbox Code Playgroud)