Displaying 20 results from an estimated 2000 matches similar to: "pretty url"
2012 May 22
1
rails-brakeman.com, an online service to find security issues in your rails projects
Hi,
I just released rails-brakeman.com, it is an online service to find
security issues in your rails projects, it works based on Justin''s great
gem brakeman <https://github.com/presidentbeef/brakeman>.
Rails developers always write code fast, but sometimes they leave some
security issues in their rails project. Do you still remember mass
assignment issues from github? Using
2007 Apr 26
2
Bitmap in Toolbar display only a quarter of picture on Windows XP
I don''t know why the bitmap in toolbar displays only a quarter of picture on
Windows XP, but it displays OK on Ubuntu.
The attachments are results both on Windows XP and Ubuntu
--
flyerhzm@hotmail.com
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2007 Apr 26
2
How to close Frame?
When I call frame.destory on Windows XP, I am told that
CodeLineStatistics/init.rb:5: [BUG] Segmentation fault
ruby 1.8.6 (2007-03-13) [i386-mswin32]
This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application''s support team for more information.
What''s the correct way to close the frame?
--
flyerhzm@hotmail.com
2007 Jun 25
2
Problem
This is the source code generated by SaltedLoginGenerator
@params[''user''].delete(''form'')
Can anybody explain what the delete message do?
--
http://sourceforge.net/projects/mycodeline/
http://rubyforge.org/projects/ropenwiki/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
2012 Jun 26
2
Error with rake command
I am using Rails 2.3.8 application and when I enter rake command it
gives following error :
ms@ms-HP:~/OpenStreetView$ rake
WARNING: ''require ''rake/rdoctask'''' is deprecated. Please use ''require
''rdoc/task'' (in RDoc 2.4.2+)'' instead.
at /home/ms/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/rdoctask.rb
rake
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 =
2009 Sep 30
5
A rails plugin to generate css sprite image automatically
Hi guys,
I have written a rails plugin/gem to generate css sprite image
automatically.
The project repository is here: http://github.com/flyerhzm/css_sprite
It is based on RMagick and you need only define a rule from what
source images to a destination image, as follows:
forum_icon_vertical.gif: # destination image file
sources: # source image file list
- good_topic.gif
2007 May 01
1
Text of Status Bar always disappear
The first time I create the status bar by call
@sb = create_status_bar
@sb.set_status_text(''Welcome to use Code Line Statistics'')
it works perfect. But when I click a tool bar button that trigger an event,
and call
@sb.set_status_text(''Finish'')
if the mouse is on the button, the text of status bar is "Finish"; but once
the mouse is out of the
2007 May 01
1
How to insert item to ListCtrl
The only way I know to use ListCtrl is to call ListCtrl#set_item_count and
define a callback function on_get_item_text(item, col)
How can I insert Listitem one by one, that each Listitem is composed with
several string
--
flyerhzm@hotmail.com
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2013 Mar 15
5
link_to should have its body and url arguments reversed
I think the link_to helper method is quite confusing with its arguments
order:
link_to body, url
link_to "Click me", @person
Why is it thay way round? I want to make a "link to [the] person", so I
would expect the order to be:
link_to @person, "Click me"
It reads much more natural. You don''t "link to [the] body", you "link to
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 same place as
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
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/.
2009 Sep 13
0
regrex_crawler -- a crawler which uses regular expression to catch data from website
RegexpCrawler is a crawler which uses regular expression to catch data
from website. It is easy to use and less code if you are familiar with
regular expression.
The project site is: http://github.com/flyerhzm/regexp_crawler/tree
I give an example: a script to synchronize your github projects except
fork projects, , please check example/github_projects.rb
require ''rubygems''
2010 Apr 22
0
How to automatically set params based on passed object when generating a route?
Hi,
having i.e. a post model that has many categories - is it possible for
member routes like i.e. post_path(post) to generate path like "/
posts/:post_category_name/:post_id" without manually passing the
category param? Does anyone know if there''s a gem or if I can simply
override the post_url method to automatically set category from post
object?
The best I could get right
2007 Jul 06
0
Removing One Element From a Serialized Form
Hi all,
I''m trying to serialize a form with the exception of one specific
element.
Serializing the form in a hash (without pulling out specific elements)
works:
<li>
<%= link_to_remote ''(Save)'', {:url => post_path(@post), :with => "$
(''post_form'').serialize(true)" }, :method => :put %>
</li>
The generated code
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
2009 Sep 10
1
App freezes on wxruby-19-2.0.1 on Windows, fine on Mac
With wxRuby-ruby19- v2.0.1, my app works well on Mac. But on Windows,
it freezes after typing up to a dozen of characters in a
StyledTextControl, mouse operations are fine. Once freezing, Ctrl+C
couldn''t end the process.
My env:
Windows XP
ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32]
It might be specific to my application (no issues on Ruby 1.8 with
wxRuby 2.0.0
2008 Sep 09
3
drag_accept_files undefined in 1.9.8 (mingw32)
Hi,
I got "undefined method ''drag_accept_files'' for Wx::Frame"
The doc
(http://wxruby.rubyforge.org/doc/window.html#Window_dragacceptfiles)
indicates it''s available on Windows.
Thanks,
Zhimin
--
Posted via http://www.ruby-forum.com/.
2008 Jan 21
2
multiple ids on restful action
Hi,
I know this question has come up before, but I couldn''t find a
satisfying answer.
Maybe I didn''t look well enough, so any pointers to old messages
regarding this subject would be welcome too.
I need some way to pass multiple ids to a resource.
Something like /posts/13,14
If I do this I have to manually split the id on ","s in the action,
and use
post_path([post1,