Displaying 20 results from an estimated 100000 matches similar to: "Keeping an array through action calls"
2006 Apr 07
13
Pop up menus - any ideas?
I''ve got a menu in which I have all of my categories as links. Each
category also has subcategories. I want to set it up so when you mouse
over the category the subcategories will pop up (to the right of the
main list, but that''s just CSS). This is what I have so far:
<% for category in @categories %>
<a href="#"
2006 Mar 31
7
Checkboxes expand to show new options when checked?
I''m writing a simple CMS where every item ("listing") HABTM categories
and subcategories (which themselves belong_to a category). What I''m
trying to do now is create a UI effect for listing creation: when you go
to create a listing, only the possible categories will be shown, but
when you select a category a set of new categories will be displayed
like so:
Lions
2006 Apr 21
11
Phone Numbers in Rails/MySQL
Is there any easy way to make a fancy looking form to take phone
numbers. Something that looks like this:
[ ] - [ ] - [ ] ext: [ ]
Then when you submit it it''s combined into one string in the database.
Optimally it would auto-switch from field-to-field after you fill each
field.
Has anyone seen anything like this in Rails?
Thanks,
Adam
--
Posted via
2006 Apr 15
3
login_engine database migration broken?
I''m trying to install the login_engine. I installed the engine system
and the login_engine, and now I''m trying to migrate the database schema,
as detailed here: http://api.rails-engines.org/login_engine/.
The commands I''ve tried are:
rake engine_migrate ENGINE=login which fails with "Don''t know how to
build task
2009 Jan 20
4
Shared templates across controllers
Hey all,
Here''s my situation: I have a pair of controllers with associated
models (called Services and Testimonials) that are quite similar.
Because their CRUD behavior is executed via AJAX, the "templates" for
the actions are all short .rjs files. Now, because of the similarity
of the models, most of the templates are exactly the same, with only
the object names changed. That
2006 Apr 11
2
Finding items from two models - then merging them
I have a model, listings. Listings habtm categories and subcategories,
which are seperate models.
What I want to do is search categories for certain items, like so:
@categories = Category.find(:all, :conditions => ["name LIKE ?",
"#%{:search_string}%"
and subcategories for the same:
@subcategories = Subcategory.find(:all, :conditions => ["name LIKE ?",
2006 Apr 15
8
Inheritance in Rails - I need some help
I''ve got a model, "category" and another model "subcategory." Each
subcategory belongs_to a category, and a category has_many
subcategories.
What I need to do is set it up so that I can search Category and
Subcategory with one .find call. So:
Category.find(:all, <etc)
will find categories and subcategories.
Now, I believe this can be done by making
2006 Mar 26
3
Making a custom selection form - newbie
Hello all,
I''ve been working with Ruby on Rails for a few weeks now. It''s difficult
for me because I don''t have much experience with Ruby, Rails, MySQL, or
any other web-languages. But I''m trudging on and learning a lot.
I''ve been working on a web application for my dad''s website; it''s a
simple content manager for
2006 Apr 23
2
blog model?
I just finished my auth zone and have some controllers to add content in
the admin zone, now i want to build a blog, i have the 2 tables, posts
and comments but i still dont get how to relate them, someone knows how
to make a blog structure/model in rails?
Any help will be very apreciated :)
--
Posted via http://www.ruby-forum.com/.
2008 Jun 02
3
Adviced way of tagging music
I change a lot of my CD to Ogg to be able to listen them easily from my
computer (I use foobar, I was used to WMP but it does not support library
for Ogg files and plug-ins I found for this where poor) without the need for
frequent CD changing.
I like my music to be richly tagged. But with classical music CD it is a
real pain to tag those files. Typical problems involve:
- single CD
2006 Apr 15
3
Dumb newbie question - text formatting?
I have a MySQL "text" element that I''m trying to display, but it''s not
formatting (i.e. it''s all one big paragraph). In the AWD depot example
it doesn''t look like they do anything special, but they get formatted
text. I''ve tried it with both:
<%= show.description %> - puts text, and formats according to any HTML
tags I typed in.
2006 Apr 15
6
Two forms for two models - one page
I''ve got two forms for two different models on the same page. What I
want is for one of the forms to return you to the same "new" page and
not clear the data in the other form. I was hoping it would be as
simple as render :action => ''new'' but no such luck.
Any thoughts?
Thanks,
Adam
--
Posted via http://www.ruby-forum.com/.
2015 Jun 15
2
git daemon on zytor is back in action
> On 06/11/2015 07:59 PM, Ady via Syslinux wrote:
> > http://git.zytor.com/?p=syslinux/syslinux.git;a=tag;h=a4fcb6d867aadcaf5a
> > f8f87eb1ba96abe2748159
>
> This is the only one I can't seem to get to work. We might have to ask
> the cgit maintainer if there is a way to even get to tag objects by
> hash. Once again, clumsy.
>
> -hpa
>
Aren't you
2007 Aug 29
2
new to rails, quick (hopefully simple) question
I am brand new to rails and I am attempting to make my first web app.
I have quickly run into my first problem however that I can''t seem to
get by. It seems like it would be easy to get around (with my
knowledge of other languages besides ruby), but I can''t seem to get by
it.
Right now, I have a note model that contains attributes, :title
(string) :content (text) and :tags
2015 Jun 12
2
git daemon on zytor is back in action
> On 06/11/2015 07:24 AM, Ady via Syslinux wrote:
> >
> > (snip)
> >
> >> horked in terms of existing URLs, but if someone finds a URL that
> >> doesn't work, I'll hammer on it.
> >
> > Thank you.
> >
> > Perhaps the following (examples of) redirection links could be
> > improved?
> >
>
> OK, I
2015 Jun 13
1
git daemon on zytor is back in action
> On 06/11/2015 07:24 AM, Ady via Syslinux wrote:
> >
> > (snip)
> >
> >> horked in terms of existing URLs, but if someone finds a URL that
> >> doesn't work, I'll hammer on it.
> >
> > Thank you.
> >
> > Perhaps the following (examples of) redirection links could be
> > improved?
> >
>
> OK, I
2015 Jun 15
2
git daemon on zytor is back in action
On 06/15/2015 12:50 PM, Ady wrote:
>
> Oops. Sorry, the other way around.
>
> If I understand correctly
>
> /tag/?id=/refs/tags/syslinux-4.07
>
> refers to the name of the tag, "syslinux-4.07"
>
> whereas:
>
> /tag/?id=a4fcb6d867aadcaf5af8f87eb1ba96abe2748159
>
> would be the corresponding reference to the hash. The
2015 Jun 11
3
git daemon on zytor is back in action
(snip)
> horked in terms of existing URLs, but if someone finds a URL that
> doesn't work, I'll hammer on it.
Thank you.
Perhaps the following (examples of) redirection links could be
improved?
In the following pairs of links, the first line is the old
(gitweb-caching style) link, and the second line would be the
destination of the redirection as it would be expected (at
2006 Apr 13
3
Sorting an array of models
I have a model, listing, which belongs_to one or more categories. I need
the user to be able to search for categories by name (which I can do)
and have it return all the listings that belong to those categories.
This I can do.
However, what I need to do is take that list of listings and sort them
by one of their fields. This is a bit more complicated, without needing
to sort I could just do:
2008 Aug 12
1
IMAP inbox: cannot delete tagged messages or change their tag
Hello, a bit of a problem with Dovecot. Version is 1.0.15 and is a
default install (no changes to config) from FC8 repository... except
that Dovecot is configured to use Maildir
I have a user on the system who uses the tags in Thunderbird (Important,
Personal etc). When she tags the messages they cannot be deleted and
their tags cannot be changed. When deleting a message from the IMAP
inbox