search for: permalink

Displaying 20 results from an estimated 180 matches for "permalink".

2007 Jul 01
1
ActiveRecord: why does 'self.name' and 'name' both work?
I''m trying to figure out why both ''self.name'' and ''name'' work in a model class. For example: class Category < ActiveRecord::Base before_save :set_permalink private def set_permalink # both work self.permalink = name self.permalink = self.name # doesn''t work permalink = name @permalink = name @permalink = @name self.permalink = @name end end I thought that attributes in a class were set via instance metho...
2010 Jun 12
2
Redirections, Duplicate Content & Permalinks
Hi, Recently I''ve looked at trying to get a permalink system up to increase my site''s ranking in google (and to have nice looking URLs); however I''ve been very worried about google and duplicate content. I currently already have a "flaw" in my site, in which if you go to mysite.com/tutorials/ID it will bring you to the s...
2009 Apr 13
4
Creating Methods in the Model?
Hey Everyone. First day diving in to ROR and Ruby... My question is how do you define methods with in the model class and/or should I even be doing this? It is my understanding that you should put as much of the business logic into the model as possible. I want to do some data manipulation before I things are submitted to the database IE (Create a variable out of two submitted via form, as
2008 Apr 30
3
pretty url
I want to write a permalink like /year/month/day/title, code is as follows: self.permalink = "#{now.year}/#{now.month}/#{now.day}/#{title}" in the view, I use restful url post_path(@post). And in the html source code, the url is /posts/2008%2F4%2F30%2FTest You can see, the ''/'' is replaced by &qu...
2006 Apr 11
4
wrong number of arguments (2 for 1)
Hi, Im having trouble figuring out how to query my database in ruby and i''m hoping someone can help me out. I''d like to find all my departments that match a permalink passed from the url. The department must also match a particular category, also passed through the url. I have written the following code. But unfortunatley I get an error "wrong number of arguments (2 for 1)" category = params[:category] department = params[:department] @departments =...
2017 Oct 02
2
Where did Alive go?
Sorry, we really screwed up the server migration. Alive is now working again and should be fixed for good :) Permalinks are still missing; we are working on recovering those. Apologies again for all the trouble. Nuno -----Original Message----- From: Sanjay Patel Sent: Monday, October 2, 2017 5:10 PM Subject: Re: [llvm-dev] Where did Alive go? I still can't use the web app - spins for about a minute until:...
2009 Sep 28
7
Basic Rails problem with has_many nil values and permalinks
Hi, I have a model property with has_many. I find the property and then I need to find the name of the building or the neighborhood that the property belongs to. The property is not always assigned a building or neighborhood. This becomes a problem when createing permalinks with permalink_fu. has_permalink [:neighborhood_name, :building_name, :address] The neighborhood name and building name are defined here in property.rb def neighborhood_name neighborhood.name end def building_name building.name end If the property does not have a neighbor...
2006 Mar 24
3
String manipulation
I need to make some nicenames from my post titles, like: - convert spaces to "-" - delete all the !,?,commas,.,;.:,* from the string How can I do? Sorry for the noob question... Oh, and another thing... How can I make permalink this way: Not .../blog/show/4 but .../category/nicename ? Thankyou. -- Posted via http://www.ruby-forum.com/.
2007 Apr 18
0
( Permalink ) W3C Expands Support for Speech Synthesis of World Languages 2007-01-10: W3C took steps today to broaden support for the world's languages in voice applications on the Web.
Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 11660 bytes Desc: not available Url : http://lists.linux-foundation.org/pipermail/virtualization/attachments/20070319/5bd4b504/attachment.gif
2006 May 15
0
Rails plugin directory: Permalinks
You can now take a stab at quickly finding a plugin based on it''s name: http://agilewebdevelopment.com/plugins/ [plugin_name_with_underscores] So, http://agilewebdevelopment.com/plugins/acts_as_authenticated will take you directly to that plugin. If you guess incorrectly (there''s no exact match), then you''ll be returned a search based on what you entered. --
2007 Apr 18
0
( Permalink ) W3C Expands Support for Speech Synthesis of World Languages 2007-01-10: W3C took steps today to broaden support for the world's languages in voice applications on the Web.
Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 11660 bytes Desc: not available Url : http://lists.linux-foundation.org/pipermail/virtualization/attachments/20070319/5bd4b504/attachment.gif
2006 Jun 16
1
sortable acts_as_tree with heirarchy
I''ve been stumbling on the tut at oriontransfer (http://wiki.oriontransfer.co.nz/main/show/SortableTree) I''ve got it working in a one dimensional list and I''ve got the drag and drop working on children, but as can''t get it to save the tree. Here''s my view: <h2>Menu Prototype 2</h2> <%= flash[:notice] %> <ul
2017 Sep 22
2
Where did Alive go?
...n.com <http://rise4fun.com> doesn't work at all? > > ~Craig > > On Wed, Sep 20, 2017 at 9:53 AM, Nuno Lopes <nunoplopes at sapo.pt > <mailto:nunoplopes at sapo.pt>> wrote: > > Alive is now working again. There was a migration to a new server. > Permalinks are still being copied from backup; they will work again > shortly as well. (I would probably not create new ones since they > may get replaced while the copy is in flux). > > Nuno > > > Citando Nuno Lopes via llvm-dev <llvm-dev at lists.llvm.org > &...
2010 Jul 26
4
Changing the model_path.
Hi, I''m new to RoR, but currently need to make some changes to my site to implement permalinks. Whenever I do a link, I use: category_path(category) and then the to_param permalinks it. The previous piece of code would link you to / categories/CategoryPermalink; the trouble is I don''t want it to be / categories, I just want it to be /PERMALINK. Then I''m getting into even m...
2006 Mar 25
1
routes mapping, subdomains and page-caching
Each of its own is no problem, but the combination of them is confusing my head ! I want to to map in routes.rb an url for an article which is identified by its permalink. The permalink is unique per subdomain. Has anybody done that and can post an example ? Should I do subdomain filtering in routes.rb so I can get page-cachabled URLs (and URL rewriting in Lighttpd form subdomain-urls to page-cacheble URLs as defined in routes.rb) ?? Or does there exist a better...
2007 May 19
0
database outputting results twice per page (using pagination + sorthelper)
...------------------------------ <%= render_collection_of_partials "upcoming", @albums_pages %> view (sorry its big) ------------------------------ <% @upcoming.each do |i| %> <div id="album"> <div id="info"><a href="<%= albums_url(:permalink => i.permalink) %>">< %= image_tag url_for_file_column(i, "cover"), :id => ''cover'' %> </a><br> <h2><% @title = i.artist + " - " + i.album %><a href="albumview.htm"><%= link_to @title, a...
2009 Feb 19
0
friendly_id / acts_as_referenced conflict?
Hi, I''m using acts_as_referenced to generate unique references: # property.rb class Property < ActiveRecord::Base acts_as_referenced :referenced_column => "permalink" end I would now like to use friendly_id to create seo friendly URLs instead of using the id. I now have: # property.rb class Property < ActiveRecord::Base acts_as_referenced :referenced_column => "permalink" has_friendly_id :permalink, :use_slug => true end The above...
2015 Mar 11
5
[LLVMdev] [RFC] Raise minimum required CMake version to 3.0
> We don't require users to compile their own gcc. Are you saying it's > impossible to get pre-built CMake 2.8.12 and gcc 4.7 on either Mac or > Windows? And we wouldn't be requiring it for cmake. My point was that cmake is always easier to install: * From binaries: a bit easier, since they are provided in http://www.cmake.org/ * From source: way easier than gcc. Gosh, from
2015 Oct 07
0
brass and chert compiled / xapian port to Interix
Report by Eric Lindblad 06-10-2015 http://www.ericlindblad.blogspot.com cf: http://permalink.gmane.org/gmane.comp.search.xapian.general/9885 modifications allowing for brass and chert to compile on SFU Interix 3.5 (modified) [code change not performance critical] /xapian-core-1.2.21/backends/brass/brass_check.cc /xapian-core-1.2.21/backends/chert/chert_check.cc #include <climits&gt...
2017 Sep 22
0
Where did Alive go?
And now rise4fun.com doesn't work at all? ~Craig On Wed, Sep 20, 2017 at 9:53 AM, Nuno Lopes <nunoplopes at sapo.pt> wrote: > Alive is now working again. There was a migration to a new server. > Permalinks are still being copied from backup; they will work again > shortly as well. (I would probably not create new ones since they may get > replaced while the copy is in flux). > > Nuno > > > Citando Nuno Lopes via llvm-dev <llvm-dev at lists.llvm.org>: > > I'm inv...