This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def update | |
d { @help } | |
respond_to do |format| | |
if @help.update(help_params) | |
format.html { redirect_to @help, notice: 'Help was successfully updated.' } | |
format.json { render :show, status: :ok, location: @help } | |
#redirect_to action: "index" | |
else | |
format.html { render :edit } | |
format.json { render json: @help.errors, status: :unprocessable_entity } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~ $ ls | |
app db heroku_key.txt.pub public ruby-versions.yml | |
bin Gemfile lib Rakefile test | |
config Gemfile.lock log README.md tmp | |
config.ru heroku_key.txt my_log.txt README.rdoc vendor | |
~ $ cd bin | |
~/bin $ ls -la | |
total 21652 | |
drwx------ 3 u22794 22794 4096 2014-06-25 17:49 . | |
drwx------ 14 u22794 22794 4096 2014-06-25 17:50 .. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def getgst | |
d { 'gets fired' } | |
s = Building.get_gst_for_building(params[:buildinginfo]) | |
d { s.to_s('F') } | |
@var = s.to_s('F') | |
respond_to do |format| | |
format.html { render :text => @var.html_content } | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#init variables | |
endcase = 0 | |
moveNum = 0 | |
$firstmove = 0 | |
$a,$b,$c,$d,$e,$f,$g,$h,$i = "?", "?", "?", "?", "?", "?", "?", "?", "?" | |
$v = "?" | |
def reset(a,b,c,d,e,f,g,h,i) | |
system('clear') |
NewerOlder