Displaying 20 results from an estimated 29 matches for "kublaikhan55".
2006 Aug 06
6
View passing empty or no value to controller -- help
Hi,
I have the following view:
<%= start_form_tag ( { :action => ''find'' }, :method => ''get'') %>
<p>
<%= text_field_tag :lemma, params[:lemma] %>
</p>
<%= link_to "Find It", :class => "submit" %>
<%= end_form_tag %>
And the following find action in the controller:
2006 Aug 05
14
Rake aborted! on No Rakefile Found error
Hello,
On a command:
rake db:migrate
I get the "rake aborted!" error. The message is:
No Rakefile found (looking for: rakefile, Rakefile, rakebile.rb,
Rakefile.rb)
c:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1822:in
''load_rakefile''
Checking my setup, I see that Rakefile.rb is in the expected path.
Why can''t rake see Rakefile.rb,
2006 May 09
9
Recommendation for a user authentication plugin
Hi,
Which user-authentication plugins should one try first? Too many out
there and too little time to try them all fairly. Thanks for your
recommendation.
cheers!
--
Posted via http://www.ruby-forum.com/.
2006 Aug 11
2
Shouldn''t CRUD be CRUDS?
With most models, almost always I find myself writing Search/Find
actions. When I view a Listing of a model, I want to look at another
record or set of records. How nice it would be if I can do a
query-by-example while viewing a Listing, or during Show/Edit/Create.
Would be nice if Search becomes another act in the scaffolding magic.
This wish has been expressed here before. Since then, has
2006 Jul 03
2
Still struggling with data flow ...
Hello,
The following view:
<%= start_form_tag %>
Enter term to find
<p>
<%= text_field_tag :name, params[:name] %>
</p>
<%= link_to "Find", { :action => ''find_term''} %>
<%= end_form_tag %>
does not appear to pass back the value of :name to the action:
def find_term
term =
2006 Jul 04
1
Multiple parent ids
Hi,
parent_id is the default name for the self-reference foreign key. What
is the convention for naming the second parent id, the third?
Thanks!
gk
--
Posted via http://www.ruby-forum.com/.
2006 Jul 31
3
Missing controller default code
Hello,
I generated a controller, using the command:
ruby script/generate controller my_kontroller my_model
The generated controller file, however, contains an empty class
definition. The default controller code is missing.
Any idea what went wrong?
Thanks,
gk
--
Posted via http://www.ruby-forum.com/.
2006 Apr 22
2
Rails console -- how to start it
hello,
I try to run the console facility in Rails, but it does not give me the
result I expected (which is to start irb).
rails script/console -s
The output:
exists
create app/controller
File exists - console
How does one run it? Thanks!
--
Posted via http://www.ruby-forum.com/.
2006 Aug 09
10
Next/ Previous record
Hi, Quick question (which means that I think there should be an easy
answer)...
When I am in the "show" view, I''d like to add 2 links, one for previous
and one for next record so that the user can go on to the next "result"
without having to go back to the ''list'' of results. However, I can''t
find my way about this problem :-S
2006 Jul 06
1
Problem implementing password and password confirmation
Hi,
I''m trying to implement password confirmation, based on the Agile
example, but just can''t make any progress.
User DB has these fields:
=========================
t.column :name, :string, :limit => 40
t.column :hashed_password, :string
t.column :salt, :string
User model has:
===============
attr_accessor :password_confirmation
2006 May 28
7
Join table not being populated
Hello,
I have the usual Categories and Products table scenario, mediated by a
Categories_Products join table. When I create a new Product and into a
given Category, I notice that my join table is not being populated.
Shouldn''t the join Categories_Products table be populated?
Thanks,
gk
--
Posted via http://www.ruby-forum.com/.
2006 Jul 07
13
Rails Recipes Book: Authentication
Hi,
The user/login management system in Chapter 31: Authenticating Your
Users and Chapter 32: Authorizing Users with Roles of Chad Fowler''s
Rails Recipes looks reasonable and adequate. However, when I ran the
Chapter 31 code, I get the following error:
Username or password invalid
And I am not even given the chance to sign in; that is, the signin form
does not appear at all.
Has
2006 May 23
10
Ruby on Rails: Up and Running
hello,
On page 49 of the beta version of Ruby on Rails: Up and Running, the
book suggests to download a zip file containing everything that has been
done up to that point, and a create_tables_with_data.sql file. The book
doesn''t have the link, and I couldn''t find it in the book site. Does
anyone know where to get the files?
This is a very good book.
Thanks.
--
Posted via
2006 Jun 13
21
RJS Templates for Rails
I''m happy to announce the availability of RJS Templates for Rails
published by O''Reilly.
The book covers all aspects and features of RJS that are included in
Rails 1.1. It also walks through a few examples, debugging with
FireBug, and finishes off with some reference material.
The book is 56 pages and is available in PDF format. I''m really happy
with how the book has
2006 Jun 08
21
"Rails recipes" vs "Rails cookbook"
Reviews Wanted.
I''ve read the tables of contents and haven''t yet made up my mind.
Is one book clearly better than the other? Is one clearly full of bugs? Is one so much
further ahead that there is no choice? Are they both so incomplete that I should just
wait and only cook real food? Do trains still have dining cars?
Warren Fred
-------------- next part --------------
An
2006 May 02
96
[ADV] Second Edition of Agile Web Development with Rails
ANNOUNCING AGILE WEB DEVELOPMENT WITH RAILS, SECOND EDITION
===========================================================
http://www.pragmaticprogrammer.com/titles/rails2/
Rails has changed a lot since we announced the first edition of the
book a year ago. DHH says that the 1.1 release "boasts more than 500
fixes, tweaks, and features from more than 100 contributors." Who
are we to
2006 Aug 12
0
Help needed in specifying conditions in pagination
Hi,
In a controller, I add to the default list action a condition, thus:
def list
@user_pages, @users = paginate :users,
:conditions => @query,
:per_page => 10
end
and @query is defined somewhere in the controller as
@query = "user_name like ''%Smith%''"
where user_name is an attribute of User.
Result: The condition pulls out the whole table,
2006 Jul 05
0
Any bibiliography plugin?
Hi,
Any bibiliography plugin that supports the bibtex format? If it is still
in development, I can do extensive testing. A reasonable developer
honorarium is not out of the question.
Thanks,
gk
--
Posted via http://www.ruby-forum.com/.
2006 Jul 14
0
acts_as_nested_set and acts_as_threaded
I''m trying to use acts_as_nested_set, as modifed by Bob Silva to add
threaded functionality. I''m getting the following error:
undefined method `display_threads'' for #<PostController:0x3ae9828>
...
#{RAILS_ROOT}/app/controllers/post_controller.rb:18:in `list''
Line 18 in post_controller.rb shows:
[post_controller.rb]
def list
display_threads @posts
2006 May 15
0
master-detail display -- a lot of work?
Hello,
I have two tables with a master detail relationship between them. I''d
like to display both on one screen, for example, a single-record display
of the master in form format on the left side of the screen and on the
right side, the corresponding details in grid display format. I''d like
to have a Find, Next, Previous buttons associated with the master. The
display of the