search for: full_name

Displaying 20 results from an estimated 1735 matches for "full_name".

2023 Mar 11
1
[PATCH 03/11] kthread: Pass in the thread's name during creation
...gt; index 63574cee925e..831a55b406d8 100644 >> --- a/kernel/kthread.c >> +++ b/kernel/kthread.c >> @@ -38,6 +38,7 @@ struct task_struct *kthreadd_task; >> struct kthread_create_info >> { >> /* Information passed to kthread() from kthreadd. */ >> + char *full_name; >> int (*threadfn)(void *data); >> void *data; >> int node; >> @@ -343,10 +344,15 @@ static int kthread(void *_create) >> /* Release the structure when caller killed by a fatal signal. */ >> done = xchg(&create->done, NULL); >> if (!done...
2007 May 27
3
[NoMethodError] simple problem
I think this test should pass but it doesn''t 1) NoMethodError in ''Person should return full name'' undefined method `full_name?'' for #<Person:0x3567964> ./spec/models/person_spec.rb:43: describe Person do it "should return full name" do person = Person.new person.should be_full_name end end class Person < ActiveRecord::Base def full_name true end end -------------- next part...
2010 Oct 05
2
Is it possible to query on virtual attributes?
I have a Person model with attributes first_name and last_name. I want to implement autocomplete search that looks that the entire name. Hence I have a method: def full_name self.first_name + " " + self.last_name end Is it possible for me to query on full_name and have rails match the first_name and last_name fields? I currently receive this error when I try, because full_name isn''t an attribute in the database: SQLite3::SQLException: no such c...
2006 Jul 25
4
Sorting by two fields
I have a list of TimeSheet objects from an ealier AR query, which I can sort by the full name of the user like so: @time_sheet_entries.sort! { |a,b| a.user.full_name <=> b.user.full_name } I can sort by the started time like so: @time_sheet_entries.sort! { |a,b| a.start_time <=> b.start_time } My question is how do I do a sort so that the list is sorted primarily by user.full_name but also by start_time? So that all the records for Joe Blogs are...
2005 Mar 08
1
Adding to model (newbie)
...;'s something fairly obvious, but I just can''t see it at the moment... I''m trying to add something simple to the model for a project management/todo list/thing. The DB has ''first_name'' and ''last_name'', and I''d like to have "full_name" available. So - models/owner.rb: def self.full_name first_name + '' '' + last_name end Then, in projects/edit.rhtml: <p><label for="project_owner_id">Owner</label><br /><select id="project_owner_id" name="project[own...
2009 Jan 15
3
Unique URLs for authentication
I''ve set up a route like this map.connect ''confirm/:id/:full_name/'', :controller => "users", :action => "confirm" and I''m wondering what is the best way to verify in the confirm method. full_name created in the model and it''s not in the database. This doesn''t work because it doesn''t parse o...
2007 Nov 28
5
methods in models dont work for views?
This question is more towards understanding how things work rather than trying to just get something to work. I have something like this in my user model. def full_name first_name + " " + last_name end This works find if I use it for display values in a collection_for_select. options_from_collection_for_select( @users, :id, :full_name) It displays the full name in the selection box options. But if I try to go <%=h @user.full_name %> I get...
2010 Nov 11
2
Rails 3 - Nested Forms, using Builder -- Check_box issue
Hello, I have the following: My Controller: def new . . @teammembers.each do |teammember| request = @request_thread.requests.build(:recipient_id => teammember.user_id, :full_name => ''Billy Bob T'') end My View: . . <%= f.fields_for :requests do |builder| %> <div class="field"> <%= builder.label :full_name %> <%= builder.check_box :recipient_id, :checked => false %> </div> <% end %> ....
2007 Dec 02
3
Better way for select list for belongs_to?
...op-down list of Courses for a particular student: ===== edit template ===== <%= f.select :course, @courses, :selected => @student.course.id %> =================== ===== students controller ===== def edit @student = Student.find(params[:id]) @page_title = "Edit #{@student.full_name}" @courses = Course.find(:all).collect { |c| [ c.name, c.id ] } end def update @student = Student.find(params[:id]) @student.attributes = params[:student] @student.course = Course.find(params[:student][:course]) respond_to do |format| if @student.save fl...
2006 Apr 28
7
acts as drop down
Hi Im using the acts as drop down plugin and have this code below acts_as_dropdown :text => "forename", :order => "forename" It currently makes use of the forename in the option tag, how can I get it to use the surname as well ie somthing like ''forename'' . ''surname'' in php Thanks -- Posted via http://www.ruby-forum.com/.
2004 Mar 05
6
qnorm(2) ends with segmentation fault (PR#6648)
Full_Name: Xiong Guanglei Version: 1.8.1 OS: Linux Submission from: (NULL) (202.38.103.50) qnorm(x) when x>1.0
2019 Apr 10
3
chown: changing ownership of 'test': Invalid argument
...main_name : * > > > domain_name : 'JEOFFICE' > > > acct_name : * > > > acct_name : 'ianc' > > > full_name : NULL > > > homedir : * > > > homedir : '/home/%D/%U' > > > shell : * > > > shell...
2006 Jan 19
2
Simple Ferret Questions
I am trying to use Ferret for searching for users based on first and last name. In my index, I am adding the first_name, last_name, and a full_name which is basically "#{first_name} #{last_name}". I am searching the index using something like the following query: INDEX.search_each(%Q/first_name:#{query}* OR last_name:#{query}* OR full_name:#{query}*/) do |doc, score| The problem I am having is when I search the index it is tokeniz...
2006 Jan 20
4
Questions about Searching
Hi, I have some questions about searching with Ferret. I have a user index with first_name, last_name and full_name (which is just first plus last with a space). Here are a couple of questions: 1) If I store the fields tokenized, it appears as though queries are case-insensitive. However, for untokenized, the query is case-sensitive. How can I make the untokenized searches case-insensitive? 2) If I have a f...
2004 Mar 02
5
cat() in long-running functions only shows up on window resize (PR#6634)
Full_Name: Peter McMahan Version: R 1.8.0 GUI OS: Windows 2000 Submission from: (NULL) (67.107.205.66) when running long functions with cat() commands inside, the requested data doesn't show up until either the function has finished or the window is resized. this is very frustrating for development pu...
2009 Feb 18
4
Inaccurate result for 0. (PR#13538)
Full_Name: Attila Lengyel Version: 2.8.0 OS: WinXP Submission from: (NULL) (81.182.224.160) > -0.3+0.1+0.1+0.1 [1] 2.775558e-17
2008 Jan 20
0
Deserialize JSON post body
I''m doing an HTTP post to my controller with an xml request body: curl -u 53b2c:X -H "Content-Type: text/xml" -v -d "<subscriber><full_name>Alex Egg</full_name><carrier_id>2</ carrier_id><mobile_phone>1234321843</mobile_phone><password>asdf</ password><sub_categories type=\"array\"><sub_category>1</ sub_category><sub_category>2</sub_category></sub_c...
2006 Jan 04
4
HOWTO: Render partial in div
...ways of going about it. Right now I can render a partial. What do I need to to render the partial in a div? Here is what it looks like so far: # index.rhtml <%= start_form_tag :action => ''search'' %> Enter Student Name: <%= text_field_with_auto_complete :student, :full_name %> <%= submit_tag "Get Student Records" %> <%= end_form_tag %> # CONTROLLER def search # Get all the PLogs associated with user_id, student_id studentid = params[:student] fullname = studentid[:full_name] name = Student.find_by_full_name(fullname) @archives = PhoneLog...
2019 Apr 11
2
chown: changing ownership of 'test': Invalid argument
...r > out: struct wbint_QueryUser > info : * > info: struct wbint_userinfo > acct_name : * > acct_name : 'ianc' > full_name : * > full_name : 'Ian Coetzee' > homedir : * > homedir : '/home/%D/%U' > shell : * >...
2003 Sep 13
5
bug or feature? (PR#4150)
Full_Name: Axel Benz Version: 1.7.1 OS: Windows Submission from: (NULL) (137.251.33.43) This feature seems to be a basic bug: > 1=="1" [1] TRUE > as.numeric(1)=="1" [1] TRUE > as.numeric(1)==as.character("1") [1] TRUE isn't it necessary to distinguish beteen num...