Displaying 20 results from an estimated 2000 matches similar to: "list of users"
2006 Jul 05
4
Rails Web Hosting?
Hi,
Where can I find Rails web hosting? I wish to get a domain name + web
hosting.
Kind Regards,
Lennie De Villiers
OpenMind Connections
Website: HYPERLINK
"http://www.openmindconnections.co.za/"www.openmindconnections.co.za
Win-Ads: HYPERLINK "http://www.win-ads.co.za/"www.win-ads.co.za ? Online
Advertisement Coming Soon!
--
No virus found in this
2006 Jul 04
4
Please help me
Hi all,
I''m getting the list of my projects in the page. But i want to get
the list according the month, i.e., if i select july in the drop down
then i should get the
list of projects done in the month of july..
Please reply..
Regards,
Harish
--
Posted via http://www.ruby-forum.com/.
2006 Jul 06
6
Functional tsts
Hi all,
I have created projects module in my application using scaffold,
and it created me everything, and all the modules are working except the
functional test. This is the error
1) Failure:
test_create(ProjectsControllerTest)
[test/functional/projects_controller_test.rb
:55]:
Expected response to be a <:redirect>, but was <200>
8 tests, 25 assertions, 1 failures, 0
2006 Jul 05
1
List of projects
Hi all,
Did any body worked some thing like this?
suppose a logs in and creates a new project.he''lll get the list of
projects in the same page. till here i got working.
Here is my question::
i want the list such that a drop down list will be there, and if i
select a month i should get the list of projects done in the month.
I used this code in the project_controller.rb
2005 Dec 16
13
How to pass a collection to paginate?
There must be a better way to write this code:
@project_pages, @projects= paginate :project,
:per_page => 10,
:conditions => ["account_id = ?", account]
?!
If only I could pass the sub-collection
account = ...
@projects = account.project
to paginate, instead of letting it extract it with a find :all + sql
conditions
Alain.
--
Posted via
2006 Aug 03
2
Failing test with assert_redirected_to
I''m having a strange problem with an assert_redirected_to in my
controller test which hopefully someone can point out my failings with!
;)
Controller method -
def new
if request.post?
#Not important here.
else
flash[:notice] = ''Please join a tree from this page.''
redirect_to :controller => ''trees'', :action =>
2006 Mar 31
13
validation with in_place_edit_for
i''ve got an in place edit text box for some of my fields. my model has
validates_presence_of for the field but nothing happens. it works fine
in the scaffold when using the edit page, but nowhere else.
anyone have a solution to this?
--
Posted via http://www.ruby-forum.com/.
2006 Apr 06
3
scaffold question
there are some things on a scaffold that i would like to use without the
whole thing. is it better to generate one and then cut it down to only
what you''ll use?
are all of the things in a scaffold available to just build by hand? for
instance, i have a scaffold for my users. in the list action, it has
@user_pages, so that you can put @user_pages.current.next or something
like that -
2006 Mar 29
1
2 ajax related questions
Hi!
I''ve got list of project on the main page and some content. If user
clicks on one of the project i use ajax to update div with content with
project data. I''m displaying only one project at a time.
In index action i just collect all projects:
@projects = Project.find(:all, :order => "date DESC")
In show action i render project partial:
render :partial =>
2006 Apr 26
1
List shows always first page
Hello!
I''m a beginner of rails.
I made a simple test project with rails 1.1.2 and ruby 1.8.2 on Windows
XP.
DB is SQLServer 7.0.
I''m connecting the server thru ODBC.
I created a table named "users" with about 10 columns.
I inserted 1000 sample records.
I created a scaffold for user model and login controller for it using
the script.
Everything''s fine
2006 Jul 04
1
List as per particular month
I want to get the list of sheets created as per month wise.i.e., i want
a drop down menu if i select june i want the sheets created in the month
of june. could any one please help me?
--
Posted via http://www.ruby-forum.com/.
2006 Mar 31
4
Question about pagination
Hi!
I''ve got a list of project on the main page and if one of them is
selected i render a partial using ajax with data of selected project.
How to create links to next/previous project using pagination?
--
Posted via http://www.ruby-forum.com/.
2007 Mar 15
1
Getting the stack trace
Hi all,
I am using the following code to print the exception, but is there a
way to get the stack trace of the complete error like
Exception: No option with text of Contract form in this select element
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1145/./watir.rb:3656:in
`select_item_in_select_list''
2007 Nov 02
3
Date Issues + Oracle + RoR
Hi Experts
I''ve a product like this
ID -> 1
Name -> Xyz
Price -> 30
Created_at -> 02-NOV-07
from_date = Date.new(2, 10, 07)
to_date = Date.new(2, 10, 07)
@product = Product.find_by_sql("select * from products where
created_at between from_date and to_date")
code works perfectly, buy my issue is i dont get any data. always says
no record found
but if i use
2006 Mar 18
2
Need help with my view populating rows
Hello, I was talking with someone in IRC, trying to get one form with
however many fields to make new rows. He worked with me on the controller,
but then I didn''t get the help with the view I needed, and I''ve been trying
to do it on my own.
I''m uploading pictures to my Pictures table. As you know, I need a few
fields for each picture. I''ll need the filename,
2006 Jun 27
1
find (ordering by field in related table)
Hi,
I am using the rails find command as below
@project_pages, @projects = paginate :projects, :per_page => 20,
:conditions => "clients.organisation_id = " +
params[''search''][''organisation_id''],
:joins => ''inner join clients ON clients.id = projects.client_id''
There seems to be a problem with project.id being over written
2006 Jan 24
1
Pagination
Hello,
maybe that I''m a stupid, but I don''t know how I can working with
pagination. In all examples is written (for example) next:
def user_list
@user_pages, @users = paginate(:users, :order_by => ''name'')
end
So, it''s OK (as a scaffold) for all set of users. But I need a little
other functionality. For example I need paginate only a little bit
2006 Mar 31
2
Silly question
Hi there,
I know this is be a very minor issue, but considering
@users = User.find :all, :order => ''name''
_AND_
@user_pages, @users = paginate :user, :order_by => ''name''
by simplicity, shouldn''t the symbols :order and :order_by
be the same or both to both cases ?
I stumbled on them a couple of times yet :)
Thanks,
Andre
--
2006 Feb 07
11
breaking down a list view
I''m trying to figure out how to change the order of a list view and it''s
obvious to me that I don''t understand what I get from a simple scaffold
to know enough to alter it.
If someone would be so kind to tell me what this means ...
def list
@placment_pages, @placements = paginate :placements, :per_page => 10
end
@placement_pages, # I am guessing that this
2006 May 23
5
Wierd pagination problem - Unknown options: order?
I am trying to use pagination with the order option. I am following
examples I''ve seen all over the web, but I am getting an error. My code
seems simple:
def list
@upload_pages, @uploads = paginate :uploads, :per_page => 20, :order
=> ''id''
end
Yet I keep getting this error:
___________________________________________