Displaying 20 results from an estimated 119 matches for "bilkovich".
2006 Apr 25
7
undefined method form_for ?
Seems the only issues I ever have with Rails are these bizarre fiddly
little things that make no sense.
Can''t for the life of me understand why I''m getting undefined method on
form_for in a view?
And it''s actually part of the acts_as_authenticated plugin that''s doing
it. But how can it not know about form_for?
--
Posted via http://www.ruby-forum.com/.
2006 Jan 31
5
Rails auth systems using LDAP?
Hi everyone,
Are there any Rails systems that are either:
* Easily extensible to use a different auth store?
* Use LDAP out of the box?
Thanks,
Sean
2006 Jul 02
7
How can I intercept attribute calls?
Hi.
I have two types of fields in my database, e.g. "name" and "name_ru".
First one is a user''s name in english and the second one is in russian.
I want to intercept calls like "c.name" and add "_ru" to it if current
language is russian (I have my own Locale class like n Globalize).
So I want such thing:
--
Locale.set("en-US")
c.name
2006 Apr 14
10
DHH Says...F You
WTF was this about?
http://www.flickr.com/photos/planetargon/127984254/
Joe
--
Posted via http://www.ruby-forum.com/.
2006 Jan 29
15
Reload the lib directory
Im writing a module in the lib directory.
If I change the module, the changes are not visible to the application
when i releod the web page (i am in the development evironment).
I must restart the web server (WEBrick) and so i see the changes... but
I lost more time.
How can I reload the module in the dirictory lib, without reload
WEBrick?
Thanks so much
--Reis
--
Posted via
2005 Dec 28
4
Changing encoding on text
Hello,
I have a set of templates creating some files for me. All data on my
site is encoded using iso-8859-1. Now I want to save the text in the
file using utf-8. I have tried using iconv, but whenever I have the
require "iconv" statement in my model, there is some error happening in
the model and the model doesn''t get loaded (not sure how to debug that).
What approches to
2006 Jan 01
5
scaffold not working on Windows XP
Hello,
I did a fresh install of ruby182 and gem rails --include-dependencies
Now when I do:
rails receipts
cd receipts
ruby script\generate scaffold receipt receipt
rails does not create the views or controller.
What can I do?
Thanks
Frank
2006 Apr 11
6
Oracle unit test problem in Rails 1.1.2/Ruby-OCI 0.1.14
I''ve upgraded to Rails 1.1.2, and I''m trying to push this change through
to our build server (Linux/Oracle) and we are getting some errors in the
unit tests using Oracle. Looking at the data in the tests reveals a
precision problem. Looking at the tables tells the whole story.
My development database contains this table:
SQL> describe dls_grids;
Name
2006 Apr 15
9
newbie q: acts as authenticated or login engine?
I''m trying to create a basic web page where people can register. Before
they are approved they are emailed a link where that they must click in
order to verify their info is correct (or at least their email).
Should I use acts as authenticated or the login engine for this?
http://technoweenie.stikipad.com/plugins/show/Acts+as+Authenticated
http://rails-engines.org/login_engine
TIA
2006 Apr 22
4
How to supress field name in error message?
Hi
How do I supress the reporting of a field name in the full error
message? I want the error to be associated with the field so that the
.fieldWithErrors class is applied to the field but I don''t want it to
add the field name to the actual error message.
For example:
errors.add("occurs_on", "The date can''t be today!") unless occurs_on
!= Date.today
I
2005 Dec 20
6
Database Query on the fly Using Forms
I am a freshman when it comes to RoR, and I haven''t been able to figure
this out. I need to figure out how to query records in my database using
form check boxes (or radio buttons) then display them in that same
instance. What would this look?
I have been told that just putting a question mark after here,
:conditions => field = ?, but what would the argument look like?
Thanks in
2006 Apr 25
12
Newb Gem Install Help!
This seems newbish, but I can''t seem to get this gem to install no
matter what I do. The gem in question is login_generator, and no matter
what folder I put the .gem file in, it can''t read locally - am I missing
something?
Remote install hangs at updating the source.
--
Posted via http://www.ruby-forum.com/.
2005 Dec 29
5
Model Composition in Rails
I''m struggling understanding the model view of a combined model. Take
the following:
class P4 < ActiveRecord::Base
has_many :p4_priorities
end
I figured out the naming and referencing of the sub models (i.e.
P4.p4_priorities - seems simple enough but I had weird issues related to
it). I''m all ok except that I am having issues with how to reference a
2006 Feb 25
5
[Half-OT] PDA Clients and Rails
Hello!
I''d like to gather some points about running a rails application on a
PDA. As a condition I''d like to use Palm and Windows Mobile based PDA to
target a huge user audience (this could be become difficult I know,
only Windows Mobile for the start is although okay).
I googled the last weeks and found out that there were only a few web
browsers out there. E.g. Mozilla
2006 Feb 08
10
Writing activex controls and dlls in ruby.
Is it possible to write activex controls and windows DLLs in ruby? I
would like to have some of my logic be usable from VB (don''t ask why).
Thanks.
2006 May 09
11
model filter?
Hi All,
Is there a way to filter / modify the output of a model class before
it''s returned to controller/view that''s calling it?
Example: I have a field phone_number which I always want to preformat
using the number_to_phone() helper....
Any help is appriciated.
Thanks!
--
Posted via http://www.ruby-forum.com/.
2006 May 26
5
Upload AVI convert to quicktime/flash
Is there a way to upload an AVI and convert it into quicktime, or flash,
and generate an output in those format(s).
Like YouTube...
I have no idea how that is done. I am fascinated and was wondering if it
was possible.
Cheers.
--
Posted via http://www.ruby-forum.com/.
2006 Mar 23
4
belongs_to more than one model
Suppose I have one table:
states
id
statename
And I have two other tables that contains states:
houses
id
color
state_id
places
id
place_name
state_id
How would my model relationships look like?
class State < ActiveRecord::Base
belongs_to house
belongs_to place
end
class House < ActiveRecord::Base
has_one state
end
class Place <
2006 May 08
4
Rubyy on rails hosting
All,
Could any of you recommend an out fit for hosting my rails app that is
not expensive with excellent support. Thanks
Patrick
2006 Jan 06
2
Paginate from a difficult sql query
Hello,
I have 2 tables
table colors :
+----------------------+
| id | user_id | name |
+----------------------+
| 1 | 1 | test1 |
| 2 | 2 | test2 |
| 3 | 3 | test3 |
+----------------------+
table users :
+----------------------+
| id | enabled | name |
+----------------------+
| 1 | 1 | bob |
| 2 | 1