ReinH__ has quit [Read error: Connection reset by peer]
fowl has quit [Read error: Connection reset by peer]
jerme_ has quit [Ping timeout: 260 seconds]
DerekNonGeneric has quit [Read error: Connection reset by peer]
kwilczynski has quit [Read error: Connection reset by peer]
proc has quit [Read error: Connection reset by peer]
d0liver has quit [Ping timeout: 268 seconds]
grvgr has quit [Read error: Connection reset by peer]
en10n has quit [Ping timeout: 246 seconds]
en10n has joined #ruby
proc has joined #ruby
jerme_ has joined #ruby
nickb has quit [Ping timeout: 260 seconds]
grvgr has joined #ruby
kwilczynski has joined #ruby
nickb has joined #ruby
aphel has joined #ruby
ReinH__ has joined #ruby
d0liver has joined #ruby
fowl has joined #ruby
DerekNonGeneric has joined #ruby
siaw23 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Excess Flood]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dfucci has joined #ruby
CrazyEdd has quit [Remote host closed the connection]
al203-cr has quit [Ping timeout: 256 seconds]
siaw23 has joined #ruby
noctux has joined #ruby
siaw23 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
noctux has quit [Ping timeout: 260 seconds]
noctux has joined #ruby
noctux has quit [Ping timeout: 264 seconds]
noctux has joined #ruby
siaw23 has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
zenix_2k2 has joined #ruby
<zenix_2k2>
beginner question, how can i start a rails console ? i did try "bundle exec rails console" and "source $HOME/.rvm/scripts/rvm", both didn't show me any interactive console
schne1der has joined #ruby
dfucci has quit [Ping timeout: 265 seconds]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
neozor has joined #ruby
<neozor>
Happy Holidays everyone
braincrash has joined #ruby
dfucci has joined #ruby
dfucci has quit [Ping timeout: 260 seconds]
panorain has quit [Remote host closed the connection]
Core3677 has joined #ruby
neozor has quit []
fowl has quit [Ping timeout: 268 seconds]
en10n has quit [Read error: Connection reset by peer]
proc has quit [Ping timeout: 260 seconds]
nickb has quit [Read error: Connection reset by peer]
jerme_ has quit [Read error: Connection reset by peer]
aphel has quit [Read error: Connection reset by peer]
d0liver has quit [Read error: Connection reset by peer]
kwilczynski has quit [Read error: Connection reset by peer]
ReinH__ has quit [Ping timeout: 268 seconds]
Core3677 has left #ruby [#ruby]
DerekNonGeneric has quit [Ping timeout: 268 seconds]
jerme_ has joined #ruby
kwilczynski has joined #ruby
aphel has joined #ruby
d0liver has joined #ruby
nickb has joined #ruby
fowl has joined #ruby
ReinH__ has joined #ruby
DerekNonGeneric has joined #ruby
en10n has joined #ruby
dfucci has joined #ruby
proc has joined #ruby
Core3677 has joined #ruby
weaksauce has quit [Ping timeout: 240 seconds]
dfucci has quit [Ping timeout: 240 seconds]
Core3677 has quit [Quit: CoreIRC for Android - www.coreirc.com]
braincrash has quit [Ping timeout: 260 seconds]
elcuervo has quit [Read error: Connection reset by peer]
elcuervo has joined #ruby
al203-cr has joined #ruby
zenix_2k2 has quit [Ping timeout: 260 seconds]
_whitelogger has joined #ruby
maryo has joined #ruby
cd has joined #ruby
chouhoulis has joined #ruby
chouhoulis has quit [Ping timeout: 272 seconds]
braincrash has joined #ruby
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
bsdbandit-01 has quit [Read error: Connection reset by peer]
chouhoulis has quit [Ping timeout: 240 seconds]
woodruffw has quit [Ping timeout: 272 seconds]
ua_ has quit [Ping timeout: 264 seconds]
woodruffw has joined #ruby
woodruffw has quit [Changing host]
woodruffw has joined #ruby
dfucci has joined #ruby
Swyper has quit [Remote host closed the connection]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ua_ has joined #ruby
dfucci has quit [Ping timeout: 240 seconds]
siaw23 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
dfucci has joined #ruby
chouhoulis has joined #ruby
dfucci has quit [Ping timeout: 240 seconds]
al203-cr has joined #ruby
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Excess Flood]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Excess Flood]
Swyper has joined #ruby
bsdbandit-01 has joined #ruby
Technodrome has joined #ruby
woodruffw has quit [Ping timeout: 260 seconds]
bsdbandit-01 has quit [Read error: Connection reset by peer]
dfucci has joined #ruby
Swyper has quit []
woodruffw has joined #ruby
woodruffw has quit [Changing host]
woodruffw has joined #ruby
bsdbandit-01 has joined #ruby
dfucci has quit [Ping timeout: 256 seconds]
jeromelanteri has quit [Remote host closed the connection]
bsdbandit-01 has quit [Read error: Connection reset by peer]
woodruffw has quit [Ping timeout: 260 seconds]
elcuervo has quit [Read error: Connection reset by peer]
adu has joined #ruby
elcuervo has joined #ruby
adu has quit [Quit: adu]
woodruffw has joined #ruby
woodruffw has quit [Changing host]
woodruffw has joined #ruby
braincrash has quit [Read error: Connection reset by peer]
bsdbandit-01 has joined #ruby
braincrash has joined #ruby
bsdband89 has joined #ruby
bsdband89 has quit [Read error: Connection reset by peer]
bsdbandit-01 has quit [Ping timeout: 264 seconds]
CrazyEdd_ has joined #ruby
braincrash has quit [Ping timeout: 240 seconds]
stan has quit [Quit: Idle for 30+ days]
_smurfke has joined #ruby
dilated_dinosaur has joined #ruby
smurfke has quit [Ping timeout: 264 seconds]
iNs_ has joined #ruby
iNs has quit [Ping timeout: 240 seconds]
ChmEarl has joined #ruby
woodruffw has quit [Ping timeout: 265 seconds]
woodruffw has joined #ruby
woodruffw has quit [Changing host]
woodruffw has joined #ruby
woodruffw has quit [Ping timeout: 246 seconds]
woodruffw has joined #ruby
woodruffw has joined #ruby
woodruffw has quit [Changing host]
woodruffw has quit [Ping timeout: 260 seconds]
woodruffw has joined #ruby
woodruffw has quit [Changing host]
woodruffw has joined #ruby
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Excess Flood]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Excess Flood]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
woodruffw has quit [Ping timeout: 256 seconds]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Excess Flood]
woodruffw has joined #ruby
woodruffw has joined #ruby
woodruffw has quit [Changing host]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Excess Flood]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
woodruffw has quit [Ping timeout: 256 seconds]
woodruffw has joined #ruby
woodruffw has quit [Changing host]
woodruffw has joined #ruby
al203-cr has quit [Ping timeout: 256 seconds]
woodruffw has quit [Ping timeout: 265 seconds]
<havenwood>
zenix_2k2, if you check back in: bin/rails c
dfucci has joined #ruby
woodruffw has joined #ruby
woodruffw has quit [Changing host]
woodruffw has joined #ruby
TCZ has joined #ruby
dfucci has quit [Ping timeout: 260 seconds]
woodruffw has quit [Ping timeout: 240 seconds]
woodruffw has joined #ruby
woodruffw has quit [Changing host]
woodruffw has joined #ruby
zenix_2k2 has joined #ruby
woodruffw has quit [Ping timeout: 246 seconds]
adam12 has quit [Quit: adam12]
adam12 has joined #ruby
woodruffw has joined #ruby
woodruffw has quit [Changing host]
woodruffw has joined #ruby
<zenix_2k2>
question, i was trying to start a rails console but it doesn't seem to work out, i tried "rails -c" but no console was shown
<zenix_2k2>
instead it shows the usage
<havenwood>
zenix_2k2: rails c
<havenwood>
zenix_2k2: Try: bin/rails c
<havenwood>
zenix_2k2: (No dashes.)
<zenix_2k2>
i also tried both of that, but both failed to work
<zenix_2k2>
also there is no bin/rails
<zenix_2k2>
it's only /usr/local/bin/rails
<havenwood>
zenix_2k2 If you're in the top directly or a Rails project, there should be a `bin/rails`.
<havenwood>
zenix_2k2: Are you in a directory with a Gemfile?
dfucci has joined #ruby
<havenwood>
zenix_2k2: Show the output of the `bin/rails c` command from a Rails project directory.
<havenwood>
zenix_2k2: You've got to run the command from the directory of a Rails project for it to work.
HeavenDestroyer has joined #ruby
<havenwood>
zenix_2k2: cd /dir/where/you/have/your/app; bin/rails c
adu has joined #ruby
<havenwood>
zenix_2k2: Does that work? If not, show us the output from running the command.
dfucci has quit [Ping timeout: 256 seconds]
<zenix_2k2>
yea i haven't done much in Ruby so i am not really familiar with this, i am just doing some security stuffs that related to something called a "Rails Console"
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Max SendQ exceeded]
<zenix_2k2>
havenwood: by it refers, i think it has something to do with Ruby On rails framework
bsdbandit-01 has joined #ruby
<zenix_2k2>
so i researched it a bit
bsdbandit-01 has quit [Max SendQ exceeded]
<havenwood>
zenix_2k2: Ah, gotcha.
bsdbandit-01 has joined #ruby
<zenix_2k2>
ok since this is security i will chat with you in privacy to avoid off-topic, are you free to ?
<havenwood>
zenix_2k2: A "Rails app" is a web application and the "Rails console" is a way to use the app.
<havenwood>
zenix_2k2: Off topic is fine, or here if it involves Ruby is good too.
<havenwood>
zenix_2k2: You need a Rails app to be able to use the Rails console.
<zenix_2k2>
ok to avoid any malicious intention, i was doing HTB and i found this GitLab old version with this PoC --> https://hackerone.com/reports/827052
<zenix_2k2>
and as you see in the second comment, it said something about "Rails console"
<zenix_2k2>
and yes i researched a bit and i do see that they also create "Rails app" as well, maybe that's something used to operate a backend system, similar to Django in Python i assume
<havenwood>
zenix_2k2 They're talking about a Rails app. If you download that Rails app you can use the Rails console.
<zenix_2k2>
but not quite so similar
<zenix_2k2>
Oh ok then
<havenwood>
zenix_2k2: Ruby ships with irb, which is an interactive console.
<havenwood>
?irb zenix_2k2
<ruby[bot]>
zenix_2k2: irb is "interactive ruby", it is part of ruby. You can run ruby code and see results immediately. it's useful for testing code. Also see ?pry, a gem which is a popular alternative to irb.
<havenwood>
zenix_2k2: But Rails has its own. You just need to download the Rails app then run `bin/rails c` from its root directory.
<zenix_2k2>
havenwood: ok so if i download those codes and save it as an app.rb, that will be my Rails app ?
<havenwood>
zenix_2k2: A Rails app lives in a directory. You can clone this Rails app then go into the directory. Run `bundle` to install the app's dependencies. Then the console will be available.
<havenwood>
zenix_2k2: Let us know if you hit any snags.
<havenwood>
zenix_2k2: Feel free to ask questions if any of this is confusin.
<zenix_2k2>
havenwood: when i run bundle, it says something about installing it a user only, which is "bundle install --path vendor/bundle", so should i go with that
<havenwood>
zenix_2k2: Ah, Bundler likes you to have a user rather than root installation of Ruby.
<havenwood>
zenix_2k2: Sure, it's fine to go with that recommendation.
<ruby[bot]>
zenix_2k2: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com