search for: railish

Displaying 15 results from an estimated 15 matches for "railish".

2006 Jun 12
5
railish icons?
This is a little off topic but someone here knows, I''m sure... Does anyone have a good site to find freely available standard icons for things like add/edit/delete/save? I''m looking for a set of clean and simple matching icons that capture that Railsy-Web 2.0 feel... Maybe icons aren''t Railsy... Steven -- Posted via http://www.ruby-forum.com/.
2006 Aug 02
4
Linking to the paginated items from search results.
Using Ferret for searching, I''ve got results that I need to link to. Which is fine, except for that they''re displayed on paginated pages using Rails paginate function - so it''s not like I can''t get it from the database or anything else. Anyone have any ideas on how to go about this? It''s not so much a coding problem as a theory problem, and I
2006 May 08
2
Creating a "Foo has_many bars" association where bar isn''t a model.
...we would have a conventions_years date, and put: has_many :years inside class Convention. But then we''d get an error, since for has_many to work, there must be a Year model. Which is silly: why would we have a Year model, then get the actual year by Year#year...? So what''s the Railish take on this? Can you have a has_many association with the "many" as simple values, not full models? What did I miss? -Alder
2006 Jan 19
1
partials and instance variables for file_column
...><%= product.preis %> </p> </div> But in my partial I have the local variable "product", not the instance variable @product, so file_column doesn''t work. I now have a <% @product = product %> in the top of my partial, but I think there must be a more railish way. But how? Thanks, Beate
2006 Aug 01
2
restful controllers - howto nest with link_to?
...;'users'', :action => "#{user.id}/projects/new" %> does what I want from a technical perspective, but results in an encoded url ( http://localhost:3002/users/1%2Fprojects%2Fnew ) which doesn''t look as elegant as the whole approach... There''s got to be a railish way to construct this url unencoded. I just don''t get it. Could someone please give me the insights. I''m already addicted to this new form of urls... Cheers, Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail...
2006 Apr 16
7
table sorting
Ahoy, I checked the API and did some forum searches but didn''t find anything good on table sorting. Is there a "railish" way to do this? My current method really is lacking (i''m on like rails day 2) <th><%= link_to ''Name'', :action => ''list'', :order => ''name'' %></th> <th><%= link_to ''Note'',...
2006 Jan 23
2
del.icio.us-like output
I''m trying to build a page similar to a delicious page that is a listing of your bookmarks in this format: 1. Querying serialized data in ActiveRecord<http://www.karmiccoding.com/articles/2005/11/29/querying-serialized-data-in-activerecord> Hack to search serialized fields to rails <http://del.icio.us/djsodom/rails> ... and 4 other
2006 Dec 19
0
Looking for a way to avoid DoubleRenderError.
...Problem is, I get a DoubleRenderError because the update action either calls redirect_to or render. I can get around the render call by calling performed?() but the call to redirect_to always chokes the rendering of the xml file. Any ideas on how I can achieve this behaviour ? Or is there a more railish way to do the same thing ? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPx...
2006 Jun 20
1
Soliciting suggestions - Form within a Form
...via the params hash. I believe I can use ''checkbox_tag'' instead of ''checkbox'' to get the values back to the controller, but that leaves me with the chore of initializing them for presentation from the values in the summary record. Overall, this path feels non-Railish. Any suggestions would be greatly appreciated. Thanks, Bill -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060620/121e680c/attachment.html
2006 Jun 20
6
checkbox_tag outside a form?
Is it possible to use checkbox_tag outside a form? I''ve put it in a view and it renders but I get nothing back in the params hash. Is there a way to get the value? Like maybe with some JS onsubmit to populate the params hash myself? Thanks, Bill -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Jul 22
12
Community request - can someone show me REST?
I mentioned this in another thread, but I''ve got a formal request now. After reading tons of stuff about REST, I don''t really get it. I need to see an example. I''d like someone to write up an example blog app with these requirements - RESTful using the simply_restful plugin (or edge rails) - allows posting of comments to articles - has categories for posts No need
2006 Aug 03
3
Relationships between models.
Hi All, I think Im having a mental block here. For some reason I just cant get my head round relationships. What I have is the following. 4 tables 1) Hosts 2) Software 3) OperatingSystem 4) Company In my terms (which are most likely wrong) a company can have lots of hosts, a host has lots of software, a host has one operating system. So should my models have the following relations in them?
2008 May 23
20
Rails validation is inefficient
Hi, I have a User model, with a validates_uniqueness_of :login The generated SQL for the validation is: SELECT * FROM `users` WHERE (LOWER(users.login) = ''fernando'' AND users.id <> 10001) LIMIT 1; and it takes 0.13s to happen (my table has 10.000 rows) When I use the EXPLAIN instruction on it, it shows that it will use the primary_key as index, but this is not
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 Jun 04
20
Proposal of some radical changes to API
Hey guys, Now that the Lucy[1] project has Apache approval and is about to begin, the onus is no longer on Ferret to strive for Lucene compatability. (We''ll be doing that in Lucy). So I''m starting to think about ways to improve Ferret''s API. The first part that needs to be improved is the Document API. It''s annoying having to type all the attributes to