Displaying 7 results from an estimated 7 matches for "select_row".
Did you mean:
select_rows
2010 Apr 28
1
Trying to get Rails working with Sybase ASE
...xists.
(true)
ruby script\generate scaffold person first_name:string last_name:string
WORKS OK
rake db:migrate --trace FAILS!
(in C:/work/ror/testapp)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
rake aborted!
undefined method `select_rows'' for
#<ActiveRecord::ConnectionAdapters::SybaseAdapter:0x97d8be8>
c:/prg/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/database_statements.rb:27:in
`select_values''
c:/prg/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/acti...
2008 Jan 04
2
oracle adapter + activerecord sessions do not work
...ember is nil). The session_id is staying the same and the
updated_at field is being updated but nothing I put in a session makes
it to the end of a request.
It''s also worth mentioning the oracle adapter wouldn''t work for me at
all until I found this patch code which provides the select_rows
method, seems they forgot to implement it or something:
require ''active_record/connection_adapters/oracle_adapter''
module ActiveRecord
module ConnectionAdapters
class OracleAdapter
def select_rows(sql, name = nil)
@connection.query_with_result = true...
2007 Oct 07
0
Rails AR/Oracle Unit Test: [7769] failed (getting worse)
.../base.rb:998:in `find_initial''
./test/../lib/active_record/base.rb:429:in `find''
./test/finder_test.rb:555:in `test_joins_dont_clobber_id''
/usr/pkg/ruby184/lib/ruby/gems/1.8/gems/mocha-0.5.1/lib/mocha/test_case_adapter.rb:19:in `run''
5) Error:
test_select_rows(FinderTest):
NotImplementedError: select_rows is an abstract method
./test/../lib/active_record/connection_adapters/abstract/database_statements.rb:34:in `select_rows''
./test/finder_test.rb:608:in `test_select_rows''
/usr/pkg/ruby184/lib/ruby/gems/1.8/gems/mocha-0.5.1/...
2007 Feb 12
0
[861] trunk/wxruby2/doc/textile/grid.txtl: Added missing methods listing section
..."Grid#save_edit_control_value":#Grid_saveeditcontrolvalue
+* "Grid#select_all":#Grid_selectall
+* "Grid#select_block":#Grid_selectblock
+* "Grid#select_col":#Grid_selectcol
+* "Grid#selection_to_device_rect":#Grid_selectiontodevicerect
+* "Grid#select_row":#Grid_selectrow
+* "Grid#set_cell_alignment":#Grid_setcellalignment
+* "Grid#set_cell_background_colour":#Grid_setcellbackgroundcolour
+* "Grid#set_cell_editor":#Grid_setcelleditor
+* "Grid#set_cell_font":#Grid_setcellfont
+* "Grid#set_cell_rendere...
2007 Mar 20
0
[903] branches/wxruby2/wxwidgets_282/samples: Added #!/usr/bin/env ruby to the grid sample.
...Panel.new(self)
- sel_menu = Wx::Menu.new
- sel_menu.append(1002, ''Select all'', ''Select all'')
- evt_menu(1002) { @grid.select_all }
- sel_menu.append(1003, ''Select row 2'', ''Select row 2'')
- evt_menu(1003) { @grid.select_row(1) }
- sel_menu.append(1004, ''Select column 4'', ''Select col 4'')
- evt_menu(1004) { @grid.select_col(3) }
- sel_menu.append(1005, ''Select block'', ''Select block'')
- evt_menu(1005) { @grid.select_block(1, 1, 6, 3) }
-...
2007 Feb 14
0
[875] trunk/wxruby2/samples: Add expanded grid sample
...Panel.new(self)
+ sel_menu = Wx::Menu.new
+ sel_menu.append(1002, ''Select all'', ''Select all'')
+ evt_menu(1002) { @grid.select_all }
+ sel_menu.append(1003, ''Select row 2'', ''Select row 2'')
+ evt_menu(1003) { @grid.select_row(1) }
+ sel_menu.append(1004, ''Select column 4'', ''Select col 4'')
+ evt_menu(1004) { @grid.select_col(3) }
+ sel_menu.append(1005, ''Select block'', ''Select block'')
+ evt_menu(1005) { @grid.select_block(1, 1, 6, 3) }
+...
2008 May 30
9
find_by_sql without a model? how to do this?
Hi,
I''d like to do a "find_by_sql" without a model (e.g. <model
name>.find_by_sql("...")) as the results I get back are a once off special,
and I''m happy to handle them as an array. How do I do this?
"ActiveRecord::Base.find_by_sql(...)" does not seem to work?
Background - At the moment I''m doing within a model <model_name>,