Displaying 20 results from an estimated 5000 matches similar to: "Pagination ..."
2006 May 18
6
NOOB: Second post, please help...
Folks,
I am linking from page A to page B, and back again. When I go from A -> B, the B_controller.rb runs fine, and the page renders properly. But, when I go from B -> A, the A_controller.rb doesn''t run again, so the array (@A) is nil (which causes a problem).
Should the controller run each time the page is accessed? Any ideas?
Marcus
Marcus Blankenship
Technology Services -
2006 May 22
13
How is this possible?
When run from the console, the following code works, when run through
the WEBrick server I get a "You have a nil object where you didn''t
expect it!"
class Competition < ActiveRecord::Base
has_many :comp_dates, :order=>:position
def initial_date
comp_dates.first
end
def display_dates
i_d = initial_date
if i_d.nil?
return "unknown"
2006 Mar 23
2
Displaying only titles that starts with a defined caracter.
Hi,
I would like to know how to display only titles of products that starts
with a defined letter (ie: titles that begin with A)
Here is the method that I use to place all titles in alphabetical order:
class Livre < ActiveRecord::Base
validates_presence_of :titre;
def self.alpha
find( :all,
:order => "titre ASC"
)
end
end
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 16
2
Validate Before Delete
I have an Order model with a ''status'' column. What I want to be able to do
is validate that the status of the Order is not completed before it is
allowed to be deleted. I tried the following method in my Model, but it
appears that this only works for an :update or :create on the record.
Anyone know how to do this, and if it should be in the model or the
controller?
2006 Mar 31
5
Titles in URL ?
Hi!
I have an article website and would like to have the title of the
article in the URL. and not domain.com/show/id
ie: http://domain.ck/articles/how-to-become-a-ror-master/
How to change a title with special caracters like: '', :, ?, !. to
something that works in the URL.
Thank you!
--
Posted via http://www.ruby-forum.com/.
2006 Mar 19
3
Multiple website section = multiple controllers ?
Hi!
I am totally new to ruby on rails and dynamic website creation (never
done php or asp).
I am reading "Agile Web Development with Rails" by D.Thomas, and I am
wondering if I need to create multiple scaffold and controllers to be
able to create a really basic CMS.
Part of the website needed:
-http://www.domain.com/
-http://www.domain.com/about/
-http://www.domain.com/articles/
2007 Sep 04
5
Invite from Ben Askins (ben.askins@gmail.com)
BenAskins (ben.askins at gmail.com)
has invited you as a friend on Quechup...
...the social networking platform sweeping the globe
Go to: http://quechup.com/join.php/aT0wMDAwMDAwMDA5MjY4NjU2JmM9OTc1NDE%3D
to accept Ben''s invite
You can use Quechup to meet new people, catch up with old friends,
maintain a blog, share videos & photos, chat with other members, play
games, and
2006 Mar 22
9
Display problem
hey guys,
Does anyone know why the french letter "?" is displayed as a question
mark "?" inside an <h1> tag ?
--
Posted via http://www.ruby-forum.com/.
2006 Mar 22
3
Limiting the number of caracter displayed
Hi!
I have a list of items with description but would like to show only the
first words of the description and link to the full item detail page.
How can I do that ?
Thank you!
--
Posted via http://www.ruby-forum.com/.
2008 Dec 15
8
[PATCH 0/2] MCA support with page offlining
Hi all,
I had posted about MCA support for Intel64 before. It had only a
function to log the MCA error data received from hypervisor.
http://lists.xensource.com/archives/html/xen-devel/2008-09/msg00876.html
I attach patches that support not only error logging but also Page
Offlining function. The page where an MCA occurs will offline and not
reuse. A new flag ''PGC_reserved''
2004 Nov 22
20
Is it possible to Xenify a stock Redhat/Fedora kernel.
I would have sworn that someone on the list had a way to Xenify a stock
RH kernel but I was not able to dig it up on the archives.
If this does not exist I am sure it would be a nice addition to Xen to
be able to patch and build some kernels that are compatable with some of
the popular distributions.
--
Alvin Starr || voice: (416)585-9971
Interlink Connectivity ||
2016 Sep 16
4
samba to ad transition
I am going to upgrade our domain which is based on samba to AD. I'd like to
have a 2 dc controllers.
After of this transition my plan is to use existing samba server as a file
server with 2 new controllers.
How to do correctly that transition? How to setup the second DHCP server?
--
View this message in context: http://samba.2283325.n4.nabble.com/samba-to-ad-transition-tp4708209.html
Sent
2016 Sep 23
4
samba to ad transition
OK. I followed all of these steps. FInally i got that running, but.
When I used RSAT tools to manage users I got message, that "A global
catalog cannot be contacted to retrieve the icons..." So I do not able to
change anything.
The second problem is DNS. Failed DNS update with error code 1 and with
error code 110.
On Tue, Sep 20, 2016 at 2:36 PM, Samba - General mailing list [via
2009 Sep 23
2
[PATCH node] Introduces the virtual network administration functions.
Moved the node administration elements to a separate submenu.
Created a new network administration menu.
* users can define a network
* users can create a network
* users can destroy a network
* users can undefine a network
* users can list existing networks, including details
Each new command is also available as a separate command line executable
as well.
Signed-off-by: Darryl L. Pierce
2006 May 23
11
adding layouts within layouts
Hi,
I want to be able to have several layouts within each other so that I don''t
have to keep repeating the layout code for one, in another. An example
would be having a layout for the title of your web page and then having an
embedded layout for the body portion in which the HTML for whatever view
gets displayed. Is this possible?
Thanks.
-------------- next part --------------
An
2016 Sep 20
4
samba to ad transition
On Tue, 20 Sep 2016 08:33:23 -0700 (PDT)
kajkoz via samba <samba at lists.samba.org> wrote:
> I did it again, mean. I followed the instruction
> https://wiki.samba.org/index.php/Migrating_a_Samba_NT4_domain_to_a_Samba_AD_domain_%28classic_upgrade%29
> then I tried to log in from the client computer. ANd again. If that
> user already existed on client computer there was not a
2006 Feb 13
1
another simple question: per_page in pagination
Hi,
Why can''t I use a variable to specify the :per_page attribute when using
the most basic form of pagination? (if I use a hardcode number, it
runs) What did I do? Thx.
My code:
def list_orders
page_size = 20
...
order_pages, @orders = paginate(:orders, :per_page => page_size)
end
My Errors:
undefined method `>'' for false:FalseClass
RAILS_ROOT:
2009 Aug 18
4
pagination problem....
Hi,
please help...
In controller...
def index
@customers = Customer.find(:all)
pagination code here....
end
In index.html.erb
Displayes list of customers and has pagination 1,2,3,4...etc.
On clicking page 2, it will again run this(Customer.find(:all)) query in
controller. So, there will be lack of performance.
So, how to increase the mysql performace? Can i use the index as below
or any
2006 Apr 04
2
Pagination and Parent Conditions
Can I do any "fancy" conditionals when using the Pagination helper?
The problem is that I want to be able to specify a conditional based
on the criteria of a parent object. Here''s an example:
Object A has_many Object B''s
I want to paginate through 100 B''s but I *only* want it to return the
ones who''s A.flag = true
I poked around through the Wiki