Displaying 20 results from an estimated 200 matches similar to: "[Rails 3.2] form_tag w :remote => true doesn't fire up the js format"
2008 Feb 25
1
NoMethodError: undefined method `<=>' for :zip:Symbol
Long time programmer, but I just started learning RoR last week. I am
going through some examples in the book "Ruby on Rails: Up and
Running".
The example I am on had me add a table to the database that looks like
so:
CREATE TABLE people (
`id` int(11) NOT NULL auto_increment,
`type` varchar(20) default NULL,
`name` varchar(20) default NULL,
`email` varchar(30) default NULL,
2019 Feb 14
3
32 seconds vs 72 minutes -- expected performance difference?
Saurabh Nanda <saurabhnanda at gmail.com> writes:
> I found something interesting in /proc/fs/cifs/Stats. Notice the
> "QueryDirectories > Failed" number. This keeps increasing as along as `ls
> -lR` is running.
That's interesting indeed. The verbose logs and network trace would tell
us more.
--
Aurélien Aptel / SUSE Labs Samba Team
GPG: 1839 CB5F 9F5B FB9B AA97
2007 Mar 26
2
Issue generating XML with hyphenated element names
Hello...
I''m trying to generate and XML file using .rxml and I''m having a
problem with element names that contain a hyphen. Here is a chunk of
the .rxml file:
xml.instruct! :xml, :version=>"1.0"
xml.properties do
@properties.each do |p|
xml.property do
xml.location do
xml.street-address(p.street_address)
xml.city-name(p.city)
..
end
end
end
2007 Jul 03
6
How index works!
Hi, i''ve a project in wich i have 2 different rails apps accessing the
same DB.
The backoffice, as usual, changes data.
The frontoffice has a search capabilities with acts_as_ferret
(paginated) for search.
Maybe this is a newbie question but, when i delete index and restart
front app all the articles are indexed, but the new one''s (via
backoffice) are not searchable.
Does
2012 Nov 02
1
[Rails 3.2.8] issue in regex scan
running a scan in irb is fine :
1.9.3p194 :001 > request_url =
"http://lvh.me::3000/en/backoffice/cms-admin/site/6/pages"
=> "http://lvh.me::3000/en/backoffice/cms-admin/site/6/pages"
request_url.scan(/^([\S]+)(backoffice\/cms-admin\/site\/)(\d+)(\/pages)$/)[0][2]
=> "6"
however running it in my controller doesn''t gives any result :
(rdb:1)
2012 Oct 21
1
load_missing_constant
I have a model ''site'' defined in a sub-folder ''cms''
class Cms::Site < ActiveRecord::Base
.....
the model is loaded correctly , checked in console:
application.rb
config.autoload_paths += Dir["#{config.root}/app/models/**/"]
console
>Cms::Site.all => []
Now trying to access this model from a sites_controller ( in
backoffice/cms
2008 Nov 01
2
stuck on a validates_presence_of unless issue
i have a person object. Persons don''t need to have addresses, but if
they have any address field value, they must have them all. So I have
something like this:
validates_presence_of :street_address, :city, :state, :postal_code
unless :address_blank?
address_blank? checks whether all of the address fields are blank.
If I run a test like this, it works:
describe "given
2012 Mar 26
3
render :json not sending any data back ...
[rails 3.2.2]
I perform an ajax call :
...
$.ajax
url: " /backoffice/expenses/rate"
type: "GET"
dataType: "json"
data:
project_id: $(''#project_id'').val()
code: $(this).val()
success: (result) ->
alert result
$(''#expense_price'').val(result)
in
2012 Nov 27
1
controller not rendering existing js.erb file
In my PlaceController, I have a search method, called remotely from a form
the method is executed, but rendering is not executed as the template is
stated as missing ..
but it''s there ...
post :search, :locale => I18n.locale, :format => :js, :country =>
"United"
Error: test_should_search_places(Backoffice::PlacesControllerTest)
ActionView::MissingTemplate:
2007 Feb 21
2
backup incremental
dear all,
can anybody tell me, how to backup my data on samba?do
you have a script for backup incremental?
i don't understand to user rsync
thank you
Cyd
____________________________________________________________________________________
Sucker-punch spam with award-winning protection.
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html
2003 Dec 17
5
Rsyncing Windows directory to a Linux box: problem with spacesin directory names
>
> >> > I am trying to rsync folders/files hosted on a Windows
> machine to a
> >> > Linux machine. Many of the directory names have spaces in them.
> >> > How can I list them in a file so that the --include-from
> option use
> >> > them correctly?
> >> > Thanks!
> >> >
> >> > Charles
> >>
2006 Jun 12
3
New "made with Rails" web site
Hello, I''m very pleased to announce you a new "Made with Rails" website
: http://www.pierre-farel.com
Even if the site is running RoR the online shop is still using PHP and
the whole backoffice (shop+site) have been rewriten with RoR
I''m using Apache 2 + Fastcgi and for the moment everything seems to go
fine !!
Thanks for all the helpfull people here !!
--
Posted
2019 Feb 08
8
32 seconds vs 72 minutes -- expected performance difference?
## QUESTION
I am sharing a 120GB folder with lots of files via Samba on a LAN (1Gbps
connection).
1) Doing an `ls -lR` on the server (on this folder) takes ~32 seconds,
compared with **72 minutes** on the client. Is this difference in
performance expected (due to network and protocol overhead)?
2) While the client is executing an `ls -lR`, one smbd process on the
server uses about 30-40% of a
2011 Oct 25
7
additional model attributes
Hi,
i have a "place" model with 2 columns (id, name).
I''m calling an external api which gives me data to create a new place
object.
I would like to add the address from the external place to the place
object and render it as a json result, without storing it in the
database.
i don''t get any errors, but the address never shows up within the json
output. i''ve
2005 Sep 08
3
can't update msaccess mdb file
At an account running 3.0.14a Debian (same account as the dual log file
issue posted earlier). A user sporadically cannot update an Access mdb
file and gets access denied errors.
The log:
[2005/09/08 12:14:31, 2] smbd/open.c:open_file(245)
ginny opened file database/EACM & ECC Reports Secure.ldb read=Yes
write=Yes (numopen=4)
[2005/09/08 12:14:36, 2] smbd/open.c:open_file(245)
ginny
2008 Jun 18
1
Vpim gem
On Wed, Jun 18, 2008 at 6:32 AM, Joost Hietbrink <joost at joopp.com> wrote:
> Hi Sam Roberts,
> First of all. Thanks for the Vpim gem. We use it at www.yelloyello.com and
> it works great.
I''m glad to hear that.
> We''ve only encountered the following error:
> # NoMethodError (undefined method `to_str'' for []:Array):
> #
>
2003 Jul 16
1
Replace NT4 PDC
I have an NT4 PDC that I would like to replace with a Samba server. My
network also has a box running MS Exchange and Backoffice (not the same
box as the PDC).
What's the general roadmap for doing this?
Could I install Samba as a BDC and then promote it.
Should I create a new domain on Samba and do a big cutover?
Or is there a way to just get the necessary info off the PDC and
then
2015 Feb 13
2
Debugging some DTMF Weirdness.
I'm attempting to find where my extra long DTMF Tones are coming from.
I'm dialing from my sip handset through my proxy to my Asterisk box which
is my PSTN Gateway.
I'm pressing 4 to select a menu and everything is fine.
[Feb 12 16:58:18] DTMF[29762] channel.c: DTMF begin '4' received on
SIP/trunk-0a02dee0
[Feb 12 16:58:18] DTMF[29762] channel.c: DTMF begin passthrough
2019 Feb 15
0
32 seconds vs 72 minutes -- expected performance difference?
>
> That's interesting indeed. The verbose logs and network trace would tell
> us more.
>
I've enabled verbose/debug logging on the client side. Here are a few
operations from the log, and my observations on them:
1) Why is the log saying `SMB2` everywhere? Shouldn't it be saying `SMB3`?
2) Is this normal -- fs/cifs/smb2misc.c: Calculated size 157 length 156
mismatch mid
2012 Oct 09
0
Form Design issue - How to handle a parent association input..
I have an Event Model with a parent Place association
class Event < ActiveRecord::Base
belongs_to :place
accepts_nested_attributes_for :place
attr_accessible :place_attributes
In a new event registration form, the user should have the choice to :
- select from an existing Place
- enter a new Place in a nested form
= simple_form_for @event
= f.association :place, :collection =>