This file contains 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
Já tenho experiência com outras linguagens como Java ***e*** C# ***e*** | |
há alguns meses que comecei a estudar a ligagem Ruby ***e*** o framework | |
Rails3 ***e*** a pouco tempo comecei a estudar ferramentas de testes | |
como Cucumber ***e*** Rspec ***e*** tenho grande interesse em aprender | |
mais ***e*** em trabalhar com essa linguagem. |
This file contains 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
ActionView::Template::Error (/var/cache/jetty/Jetty_0_0_0_0_8080_jruby_test.war___hml.xpto.com.br_.crf9hp/webapp/WEB-INF/app/views/control_panels/_form.html.erb:45: syntax error, unexpected ',' | |
');@output_buffer.append= ( f.submit (title_tag :"activerecord.attributes.control_panel.save_configurations"), :class => "button" );@output_buffer.safe_concat(' | |
^): | |
42: | |
43: <% if f.object.new_record? %> | |
44: <div class="ui-action"> | |
45: <%= f.submit (title_tag :"activerecord.attributes.control_panel.save_configurations"), :class => "button" %> | |
46: </div> | |
47: <% end %> |
This file contains 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
translate en-pt ep http://translate.google.com/#en|pt|%s | |
translate pt-en pe http://translate.google.com/#pt|en|%s |
This file contains 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
<html> | |
<head> | |
<title> datepicker demo </title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js" type="text/javascript" charset="utf-8"></script> | |
<script src="../src/jquery.maskedinput.js" type="text/javascript"></script> | |
<script src="http:////ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js"></script> | |
<!--<script src="http:////ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/jquery-ui.min.js"></script>--> | |
<link type="text/css" rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/redmond/jquery-ui.css" /> | |
<script type="text/javascript"> | |
$(function() { |
This file contains 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
~/Projects/opensource $ rails -v | |
ruby Rails 3.0.5 | |
~/Projects/opensource $ ruby -v | |
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.6.0] | |
~/Projects/opensource $ rails new foo | |
create | |
create README | |
... | |
create vendor/plugins/.gitkeep | |
~/Projects/opensource $ cd foo/ |
gurizei.
quando tu faz no rails "render :xml => @any_collection", ele chama o to_xml passando uma série de parâmetros no options, logo, se tu implementa teu to_xml assim:
def to_xml(options = {})
super(:include => [:children])
end
tu não vai estar repassando pro super o "options" - que nesse caso vem com algo do tipo:
This file contains 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
bash: /home/gregorio/.rvm/scripts/log: Arquivo ou diretório não encontrado | |
awk: cannot open /home/gregorio/.rvm/lib/VERSION.yml (No such file or directory) | |
bash: __rvm_conditionally_add_bin_path: comando não encontrado | |
~$ rvm -v | |
bash: __rvm_cleanse_variables: comando não encontrado | |
rvm by Wayne E. Seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/] | |
~$ rvm reload | |
~$ rvm -v |
This file contains 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
/Users/plentz/.rvm/gems/ruby-1.9.2-p180/gems/ruby-debug-ide-0.4.17.beta3/lib/ruby-debug/xml_printer.rb:92: [BUG] Segmentation fault | |
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.6.0] | |
-- control frame ---------- | |
c:0131 p:---- s:0623 b:0623 l:000622 d:000622 CFUNC :frame_file | |
c:0130 p:0014 s:0619 b:0619 l:000618 d:000618 METHOD /Users/plentz/.rvm/gems/ruby-1.9.2-p180/gems/ruby-debug-ide-0.4.17.beta3/lib/ruby-debug/xml_printer.rb:92 | |
c:0129 p:0026 s:0612 b:0612 l:000606 d:000611 BLOCK (eval):5 | |
c:0128 p:0019 s:0610 b:0610 l:000609 d:000609 METHOD /Users/plentz/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/monitor.rb:201 | |
c:0127 p:0012 s:0607 b:0607 l:000606 d:000606 METHOD (eval):3 |