Displaying 11 results from an estimated 11 matches for "mzilena".
Did you mean:
milena
2006 Aug 12
7
Override method in ActiveRecord
Hello,
there is a method ActiveRecord::Base#exists? . I would like to override
this method in a class ActiveRecord.
Could anyone tell me how to do it?
TIA
--
Posted via http://www.ruby-forum.com/.
2006 Mar 20
3
rhtml templates and syntax
Hello,
where do we need <% -%> in templates ? What is the difference between
<%= %> and it ?
--
Posted via http://www.ruby-forum.com/.
2006 Mar 25
2
Current controller
Hello railists,
I have a list of news headers on my index page. I would like to hide
this list if current controller is ''news''.
I put to main/index.rhtml
"<% unless @controller == "news" %> list here news headers <% end %>
. This doesn''t work.
So, the question is how to get current controller name in template ?
Thank You!
--
Posted via
2006 Mar 30
13
Trying Agile book, found problem
Pg. 57 of Agile asks you to create a scaffolding by typing in
ruby script/generate scaffold Product Admin
Instead of generating everything, it only gives me
exists app/controllers/
exists app/helpers/
exists app/views/admin
exists test/functional/
dependency model
exists app/models/
exists test/unit/
exists test/fixtures/
identical
2006 Aug 17
0
field is not empty rails javascript
Hello,
how could I add validation to the field that should not be empty before
submitting?
Is it possible to add with rails helpers or smth.
TIA!
--
Posted via http://www.ruby-forum.com/.
2006 Apr 05
0
file_column create image on fly
hello,
i''ve added version "small" => {:size => "320x240>"} to file_column. But
it doesnt create that size image. How to tell file_column to create
small image if it doesn''t exist?
Thank you
--
Posted via http://www.ruby-forum.com/.
2006 Apr 08
5
file_column
hello,
how to generate new image if i do add new version? For example, I add
version :small => { :size => "320x240" } .
How to tell file_column to generate new image version if image is
allready uploaded ?
Thank you!
--
Posted via http://www.ruby-forum.com/.
2006 Apr 12
0
fixtures advanced question
Hello,
in my database i have tables models,marques,cars. I wrote fixtures for
models f1:
id: 1
marque_id: 1
name: 100 NX
f2:
id: 2
marque_id: 1
name: 200 SX
f3:
id: 3
marque_id: 1
name: Almera
f4:
id: 4
marque_id: 1
name: Patrol
f5:
id: 5
marque_id: 1
name: Primera
f6:
id: 6
marque_id: 2
name: CLK
f7:
id: 7
marque_id: 2
name: CLS
f8:
id: 8
marque_id:
2006 Mar 10
1
text_field_tag html class
Hello,
how could I define class for input textfield,
text_field_tag(''somefieldname'',nil,:class => ''txt'') doesn''t work ? :(
Marius Zilenas
--
Posted via http://www.ruby-forum.com/.
2006 Mar 14
0
how to render_component in global layout
Hello,
i have one layout file for all controllers. I would like to have news
list on each page. So, i put <%= render_component :controller => "news",
:action => "list" %> , to my layout file. But this doesn''t work at all.
I get error "Application could not be started.. ".
If I put render_component to some view file say
2006 Mar 21
0
sqlite3 SQL logic error or missing database
Hello,
i can''t insert data into table. This is weird because everything else
works:
i can select data the database file I use;
i can insert data into required table if i connect to my sqlite3 file
from shell and insert data manually.
My database configuration:
production:
adapter: sqlite3
dbfile: db/production.sqlite3
.
File production.sqlite3 is chmod''ed 777 and