Displaying 20 results from an estimated 81 matches for "rimanta".
Did you mean:
rimantas
2006 Apr 07
6
Multiple view types for a single action?
Is it possible to have more than one kind of view for a specific action,
for example an .rhtml and a .rjs file to handle the view for the same
action?
I suspect not, but this makes me wonder if there a way to call the .rjs
file from within the .rhtml so the statements within it get executed?
Thanks,
Andy
2006 Apr 08
5
What is the h for?
In the "Agile Web Development with Rails" book it runs through making an
example application, a shopping cart.
In one of the views files, there is one line of code I dont understand
(below), I dont know what the "h" is for, also I took the h out, and it
did not affect the application (as far as i could see).
<%= h(product.title) %>
Can anyone shed some light on this
2010 Feb 26
2
Fwd: how to install rmagick on fedora please help urgent
hi all
i want to run project at local system ..see this i m getting some error
http://pastie.org/843746 and when i run server http://pastie.org/843748 plz
tell me how to install rmagick on fedora
Regards,
Shyam
+91-9716-18-9650
--
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
2007 Mar 21
6
Converting Rails app to desktop with XUL?
Hi,
We are thinking about choosing Rails as our weapon of choice for our
next project, which is basically a text editor on steroids, whith some
functionality that need an Internet connection.
In the first step we are going to develop it as a plain web app
(AJAX-ified, yay!), however, in the next step we would like to port some
of the functionality (such as the editor) to a desktop app (which can
2006 May 05
2
how to get image properties
Hi friends
in PHP there is a direct function GetImageSize(), with it I can easily
determine the dimentions of an image file.
How can I do in RoR.
Please help me out
Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060505/13ba1640/attachment.html
2006 Jul 24
2
Flash problem with RoR? missed something?
I have tried to put a flash movie inside of my RoR page and it shows up
with nothing on IEPC.
It does very well on every other type of browser but does not work with
IEPC.
I made a folder - "flash" in my public directory and have had the one
instance of it point there.
Thus my flash directory is www.rails-app.com/flash/flash.swf
Is there anything that anyone knows to help out?
2006 May 19
5
How to determine if an object has just been created
Is there a built-in way to determine if a model object has just been
created (ie. this object was the one that was originally persisted)? I
can''t see it anywhere in the AR code, but thought I''d check. I want
something like:
p = Person.create
p.original_instance? # true
Is this built-in or should I just patch AR?
-Jonathan.
2007 Feb 28
6
DRY question - image_tag :alt and :title the same
Hello,
I have the following:
image_tag(''show.png'', :alt => ''show article'', :title => ''show
article'', :border => 0)
Is it possible that I donĀ“t need to have "=> ''show article''" twice in
this row? e.g. something similar to this pseudo code: (:alt, :title)
=> ''show article''.
2009 Feb 24
7
Add .html extension by default
Hi all,
i would like to add the .html extension by default to all my
resources. What is the best way to do that? The reason for this is
that i need to download the generated sites via wget and i need
the .html extension for the downloaded files. Also it would be nice if
the link_to would automatically generate the links with .html...
Thanks,
Gerold
2006 Jul 15
4
routing requirements broken in Rails 1.1.4?
Hi,
I have the following routes
map.connect '':controller/:id/:action'', :id=>/4/, :defaults=>{ :action=>''show''}
map.connect '':controller/:action'', :defaults=>{:action=>''index''}
and when I point my browser to "localhost:3000/departments" I see an
error because the show action cannot find a
2006 Jul 25
2
join in legacy DB?
I''ve got a problem with some tables that don''t follow any RAILS
standards. how do I define the join in the model when all three tables
have wacky names?
class Machine < ActiveRecord::Base
set_table_name "tbl_CodeMgmt_Host"
set_primary_key "Id"
end
class Pool < ActiveRecord::Base
set_table_name "tbl_CodeMgmt_Pool"
set_primary_key
2006 May 10
3
text_field_tag options
Hi all,
can someone explain to me how the options for helper text_field_tag
supposed to be written. I really tried a bunch of stuff without success.
For example I need a field with id "query", so I write
<%= text_field_tag :query %>
which works fine.
But what if I want the field only 5 characters big? I tried among other
<%= text_field_tag :query ,
2006 May 23
2
Ordinalizing a date
I''m trying to use the ordinalize() method to ordinalize a day. Here''s
how far I''ve gotten:
@reportday = Time.now.at_beginning_of_week.strftime("%d").to_i
@ordinalized_reportday = "#{@reportday}".ordinalize
I was thinking it wasn''t working because the date is being returned as a
string, however I added the .to_i and still it returns an
2006 Sep 15
7
OT: TinyMCE in Rails
I''m having a problem getting the text area the size I want it to be.
In my view at the top I have this init calls
<script type="text/javascript" >
tinyMCE.init({
mode: "textareas",
theme: ''advanced'',
theme_advanced_toolbar_location: ''top''
});
</script>
Then in my form:
<%= text_area
2008 Jan 31
3
Handling multiple Check boxes in a XHTML Strict way
Hi,
The default way we handle an array of checkboxes is like this:
<% items.each do |item| %>
<%= check_box_tag ''item[]'', "#{item.id}" %>
<% end -%>
this returns an array item[] that holds the ids of all the items.
Now the real issue:
1. The above loop will same ids to ''n'' items
2. All ids will be ''item[]''
1999 Mar 27
2
migration win95 -> win98
Hi everybody,
we are currently running a small network with a samba server and a few
Windows _95_ workstations. The server stores roaming profiles for all
users and provides authentification (logon scripts, policy file, ...)
Now, we are planning to add a Windows _98_ workstation.
Q1: Will Win95 and Win98 be able to work with the same user profiles,
policy file etc?
If not, what can I do?
Q2:
2006 Jul 25
8
Creating records in two models in a RESTful way.
Hey everyone,
I have a philosophical question here. Say I have a website that uses two
models for accounts: Person and Company. Normally I would just have
/accounts/new for user signup.
However, the RESTful way to do it is to have /people and /companies.
Unfortunately, this doesn''t account for a situation where you''d have a
one-page signup form. I wouldn''t want
2006 Apr 07
4
How to generate mapping with migration
Hi there, I''ve tried to add a m:n mapping table using the migration
mechanism.
ruby script\generate migration add_categories_notes_mapping
and filled the migration file with:
class AddNotesCategoriesMapping < ActiveRecord::Migration
def self.up
create_table :categories_notes do |t|
t.column :category_id, :integer, :null=>false
t.column :note_id, :integer,
2006 Oct 28
2
where is the "record" method??? i.e. which is used in generators (e.g. scaffold_generator.rb)
Hi,
Anyone know where the "record" method is defined. Its used in generators
like in the scaffold generator. An extract from it is below (taken from
scaffold_generator.rb):
def manifest
record do |m|
# Check for class naming collisions.
m.class_collisions controller_class_path,
"#{controller_class_name}Controller",
2006 Apr 05
8
Pass paramter via form
Hi,
I want to allow users ti search my blog. I have the following code
below to initiate the form.
<%= start_form_tag :action => ''search'', :search => search %>
<p align =center><%= text_field ''search'', ''search'',"size" =>"20" %>
<%= submit_tag ''Search'' %></p>